Difference in size of .java & its respective .class file

Ads

 
 

Share on Google+Share on Google+

Naveen
Difference in size of .java & its respective .class file
0 Answer(s)      6 years and 3 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

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
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
Advertisements
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
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
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 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 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 file class
Java file class  What is the purpose of the File class
Java class file
Java class file  How do i open a java class file using eclipse
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
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
track file size changes
track file size changes  How to track a change in file size
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
class with in its own objects?
class with in its own objects?  Is it a good idea to declare a class with in its own objects
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. 
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
file size - JSP-Servlet
the file size. Anyone help me how to check the file size with this coding. I tried...file size  Hello friends, I got the file upload coding in the roseindia at the following url: http://www.roseindia.net/jsp/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 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
limiting file size - JSP-Servlet
limiting file size  I 'am unable to limit the size of file usin jspx.Can some body guide me ? Thanks
class file
class file  How to create class file in jsf easily
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
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
Difference between extends thread class vs implements runnable interface - Java Interview Questions
Difference between extends thread class vs implements runnable interface  Hi Friends, can you give difference between extending thread class and implementing runnable interface.  Hi Friend, Difference: 1)If you
how to start intergrated webcam of a laptop without calling its exe file using java only - Java Beginners
how to start intergrated webcam of a laptop without calling its exe file using java only  how to open integrated webcam of a laptop without calling its exe file using java only?.simply what i am asking is that is there any method
class file
class file  how to convert java classfile into java sourcefile
Difference between abstract class and an interface
in java. Third difference is that abstract class begin with the abstract...Difference between abstract class and an interface The difference between... between abstract class and interface in java. Abstract class is a class
limiting file size - JSP-Servlet
limiting file size  I 'am unable to limit the size of file using... uploadMaxFileSize 100m Set the size limit... 100k Set the threshold size - files
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