answersLogoWhite

0

What is java file in java?

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

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

User Avatar

Wiki User

13y ago

What else can I help you with?

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).


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 do you save a notepad file into a java file?

just add an extension .java when you save your notepad text file


What is JFM in Java and what is the use of it?

jFM is a java file manager. It is used to access the file system.


What is java class file?

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


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


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.


What is jar file?

Jar file is Java AR-chive Java Archive File, commonly referred to as a Jar File is nothing more than a compressed archive file.


How do you convert the java file into JPEG file?

A java file it's only a text file. You can't convert a text file into a image file of any type. What you can do is open your java file in your editor an take an screenshot (you must have a key with the label 'print screen' in your keyboard) then open open some image editor like paint and finilly paste and save your image. Or you can chage the java extention for jpg in your java file and have fun trying to open it (sarcasm, don't do it).


Extension file for Java?

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


Where does bytecode come from java?

It is created by the Java compiler, based on the source code (the .java file).


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


Can a .java file contain more than one java classes?

Yes, it can. However, there can only be one public class per .java file, as public classes must have the same name as the source file.


Theme diy software file java for nokia 5130xpressmusic?

java


What is File and Stream in java?

file is one of the storage device


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.


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 more than one public class in the same file?

No. There can be multiple java classes in the same .java file, but the name of the file must match the name of the public class in the file.


How java program can run in windows7?

You must have a java runtime environment (JRE) installed to run a jar file .. if it is not a jar ( or it is a class ), you should have the java development kit or JDK .. if the file you are running is a jar file, just double click it. if the file you are running is a class file ex. "MainProg.class" then go to the bin directory, and open command prompt and change to that directory. then java MainProg.class it should run ..