Home Answers Viewqa Java-Beginners Difference in size of .java & its respective .class file

 
 


Naveen
Difference in size of .java & its respective .class file
0 Answer(s)      a year and 11 months ago
Posted in : Java Beginners

Hai,

I had created & compiled a java class named sample.java. The size of sample.java is 340KB. Whereas the size of its respective class file sample.class is 137KB. Could anyone suggest the reason. Thanks in advance.

~Naveen

View Answers









Related Pages:
Difference in size of .java & its respective .class file
Difference in size of .java & its respective .class file  Hai, I had created & compiled a java class named sample.java. The size of sample.java is 340KB. Whereas the size of its respective class file sample.class is 137KB
why java file save as its class name
why java file save as its class name  hi,this is subbareddy vajrala.my doubt is why java files save as its class names
How to adjust a size of a pdf file
How to adjust a size of a pdf file   ... adjust the size of a pdf file irrespective of the fact whether it exists or not. If it exists then its fine, otherwise a pdf file will be created. 
difference
difference    what is the difference between the JDBC-ODBC bridge, the Native-API-Partly-Java driver, and the JDBC-Net-All-Java Driver...: JDBC and its types
Java file get size
Java file get size In this section, you will learn how to get the size... an object of File class and specified a file in the constructor. The object then calls the method length() which returns the size of the file in bytes. Then we
difference
difference  difference between Method Overloading and method Overriding   Difference between Method Overloading and Method Overriding... in different classes. one in the super class can be made virtual and other can override
Getting the Size of a File in Java
Java file get size In this section, you will learn how to get the size... an object of File class and specified a file in the constructor. The object then calls the method length() which returns the size of the file in bytes. Then we
Java Class Size
Java Class Size  How to determine size of java class
what is the size of java class
what is the size of java class  Could anyone tell me how to find the size of the class given below. public class Sample { private int x; private int y; private char ch; public static void main(String[] args) { Sample
Difference between Java IO Class - Java Beginners
Difference between Java IO Class  What is the difference in function between Two set of Stream class as mention below- 1)FileInputStream...   Hifriend, 1. The FileOutputStream class is a subclass
Getting file size - JSP-Servlet
Getting file size  Hello friends, I am doing a jsp project. File uploading is one part of that. When uploading i have to check the file size. For this i used the java method .length(). But, for all type of files
maximum size of arraylist - java
? 4.how many access specifier and how many access modifier in java? 5.what is difference b/w abstract class and interface? 6.which is best b/w abstract class...maximum size of arraylist - java  1.what is the maximum size
ARRAY SIZE!!! - Java Beginners
array. Runtime it automatic increase its size if or not u declare the size see...ARRAY SIZE!!!  Hi, My Question is to: "Read integers from... don't know it's size (and I don't want to ask the user to enter it's size
Limiting the Size of a Log File in Java
Limiting the Size of a Log File in Java  ... to limit the size of a log file in Java. Log files haven't any boundation at the file creation time but Java provides the facility for limiting the size of a log
Image Size
Image Size       This Java awt (Abstract Windowing Toolkit) tutorial describes about the image size...; This program helps you in setting an image and getting the size of its
Class
is termed as a class. All the objects are direct interacted with its class... on the particular properties of the class or its group. We can understand about the class.... Constructor is the method which name is same to the class. But there are many difference
In Java how to get size of class and object?
In Java how to get size of class and object?  In Java how to get size of class and object
In Java how to get size of class and object?
In Java how to get size of class and object?  In Java how to get size of class and object
difference between servletconfig and servletcontext in java
difference between servletconfig and servletcontext in java  difference between servletconfig and servletcontext in java   ServletContext... to communicate with its servlet container, for example, to get the MIME type of a file
difference between enum and final class?
difference between enum and final class?  what is the difference between enum and final class in java?   The java.lang.Enum is an abstract class, it is the common base class of all Java language enumeration types
Java MappedByteBuffer example, How to create a large size file in java.
Java MappedByteBuffer example, How to create a large file in java... of MappedByteBuffer class in java. Code import java.io.RandomAccessFile; import ...;} } Output C:\>java CreateFile File
difference between servletconfig and servletcontext in java
difference between servletconfig and servletcontext in java  ... servlet to communicate with its servlet container, for example, to get the MIME type of a file, to get dispatch requests, or to write to a log file.   
what is the default buffer size for bufferedreader
a program in Java for reading the big text file. I want to know what... text file efficiently? Thanks   Hi, The default buffer size... programs in Java for reading large text files. Read the example Java Read File Line
difference
difference  difference b/w java and asp.net
Difference between error and exception ????????
Difference between error and exception ?  Can we handle a error in java if yes than give an code of an example? Difference between error... have to fix it while allocating no new memory) so its better to let the system
pdf default size
the default size of pdf. Its options are from A0 to A10. These text explains the ISO 216 paper size system and the ideas behind its design. It will adjust the size... then its fine, otherwise a pdf file will be created. After going this tutorial
Retrieval column details into respective JComboboxs
Retrieval column details into respective JComboboxs   Hello sir... in there respective comboboxs.. and if i select other name name in the PNAME(shruthi) combobox..Its number in the PID(11),DOCNAME(ramu) ,DEPNAME(ranjan),TEC_NAME(arun
difference
difference  difference between thread and process in java   Difference between Process and Thread: 1)Process is a program under execution whereas Thread is a part of program. 2)Process are heavy weight programs which
size of the image - Java Server Faces Questions
size of the image  Hello, how to set the size of the image while Inserting image in the pdf file using i text  Hi friend,import java.io.*;import com.lowagie.text.pdf.*;import com.lowagie.text.*;public class
Controlling Java Heap Size Memory Allocation
Controlling Java Heap Size Memory Allocation  Hi, Tell me about Controlling Java Heap Size Memory Allocation? I have to run java program from console and allocate 2GB of RAM to Java Heap Size. Thanks   Hi, You can
difference - Applet
difference  what is the difference in between awt and swing package... and what is the difference in between frame,panel  Hi Friend... as JFC?s (Java Foundation classes). 2) AWT components use native methods
class file
class file  how to convert java classfile into java sourcefile
Difference between C++ and Java - Java Interview Questions
operator overloading2. A class definition in Java looks similar to a class... programming as java has its own automatic garbage collection mechanism.Java is platform... Core and its sideways Editions Check at http://www.Roseindia.net/java BaadshahKhan
Java Jar File
Java Jar File       In Java, JAR (Java ARchive) is a platform-independent file format that allows you to bundle a Java applet and its requisite components (.class files, images
Java class name and file name are different
Java class name and file name are different  Can we run a Java program having class name and file name different?   Hi Friend, No, you can't. It is necessary to save the java file with its class name otherwise
ARRAY SIZE. - Java Beginners
ARRAY SIZE.  Thanks, well that i know that we can use ArrayList... java.util.ArrayList; public class CopynDouble1 { public static void main(String... class CopynDouble1 { public static void main(String[] param){ try
Java file class
Java file class  What is the purpose of the File class
Get File Size
in understanding  Get File Size. For this we have a class name" Get File... Get File Size      ... display the list of array file using for loop. Now in order to evaluate the size
Use of size and getInputStream method of ZipFile.
files.  In this Example, The size() method of ZipFile class returns number... size() returns the number of entry in a associated zip file...:\java ZipGetInStream Total number of entries in a zip file :2 Name
its urgent for me - Development process
its urgent for me  Hi All, this is kalavathi,i am new to alfresco.present i am using alfresco3.9b version.my problem is i was writing code in java...; import org.springframework.context.ApplicationContext; public class
Class in Java
Class in Java       In this section, we will discuss about java classes and its structure. First of all learn:  what is a class in java and then move on to its
Example of Hashset size() method in java.
Example of Hashset size() method in java. The size() is a method of HashSet class. It is used to calculte the size of HashSet. The size of method... class SizeOfHashSet { public static void main(String[] arg) { HashSet
difference - Java Interview Questions
difference  what is the difference between instance and object? ... at a particular time whereas object refers to the memory address of the class. For ex... you are creating an instance of class and some memory is occupied by object
How do Unzip a directory and all its contents using ZipEntry class in java.
How do Unzip a directory and all its contents using ZipEntry class in java.... The   ZipEntry class is used show the single entry in ZIP file...; The ZipFele class create an object of given zip file and read entries
track file size changes
track file size changes  How to track a change in file size
difference between lock and synchronization
difference between lock and synchronization  Hi, I am new in java please anyone tell me difference between lock and synchronization in java. its urgent. Thank in advance   Please visit the following link: Lock
Difference b/w jdk 1.1 and 1.2 - Development process
- The default value of the class path was (1) the path where Java platform classes...Difference b/w jdk 1.1 and 1.2  Can you plz specify the changes... and -classpath The class path has a default value and can be set
Difference between ServletContext and ServletConfig
Difference between ServletContext and ServletConfig   What is the difference between ServletContext and ServletConfig?   ServletContext :Defines a set of methods that a servlet uses to communicate with its servlet
A4 size
values for a A4 size to the document instance. Its options are from A0 to A10. These text explains the ISO 216 paper size system and the ideas behind its design. It will adjust the size of a pdf file irrespective of the fact whether it exists
Convert Class File to .java File - Java Beginners
Convert Class File to .java File  Sir, How To Convert .class file to .java File. Please Help me  Use cavaj software ,which is freeware, to convert .class to .java  Use jd-gui to convert ur .class to .java

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.