answersLogoWhite

0


Best Answer

You look at the file. A program such as Windows Explorer - or the equivalent in other operating systems - can tell you the size. Also, a command such as "dir" (in Windows), or "ls" (in Linux or Unix).

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you get the class file size in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When java uses compiler?

What i know is java we will use compiler when it want to get class file(file with .class extension) from java file(file with .java extension).


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


What is the java file in java?

The java file has the actual JAVA code present in it,..i.e the entire coding is done in that file.. you can view it using any text editor.. After compiling it you get a class file of every class present in the java file When you open a class file in a text editor, you won't see anything that makes sence. You won't find the original code that you wrote in the java file. That is because a class file is a product of the compilation of a java file.


What type of file is created by Java?

Java created a file called class, and is identified by having the .class at the end. This file includes a Java bytecode, which then can be used on the Java Virtual Machine.


How class file is created in java?

A class file is a compiled .java file and cannot be executed without jdk or java. They are often executed with .bat files in windows for convenience


How do you open a class file?

A (java) class file was not be made to be opened and modified by hand for the users. A class file is the resulting byte code of your java file compilation. This class file can be interpretaded for any jvm. To run your java class you only need to write these instructions in your command line. java [ options ] className [ arguments ... ] java -classpath D:\myprogram MyFileName one two three


What is java file in java?

A java file contains the code you write. One java file contains one class so for example when I want to make a class called Person, the source code is saved in Person.java


What is java class file?

That's the compiled Java file, the one that can be distributed to the end-users.


Any algo is used for converting class file to java source file?

You need a decompiler to convert class files to java source files. JAD is a Java Decompiler that can do it for you.


What is the extension of a java byte code file?

.class is the extension of a java byte code file.


Program in Java to create file and copy content of an existing file to it?

You need to use File class to create file in java and than Reader class implementation such as BufferedReder to read content.


Is it possible to have file name as java eg javajava?

Yes you can name a file (class if you use eclipse) java or even have java in the name.