answersLogoWhite

0

If you want to compile a java program the name of that source code must end with extension .java

User Avatar

Wiki User

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


Extension file for Java?

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


How do you save a notepad file into a java file?

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


Where to write javafie?

we use notepad and netbeans for java file.save file with .java extension


How you make a project in java?

You create a text file with a .java extension. Then you put a proper class definition.


What is the extension of a java byte code file?

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


What is the file extension of an applet?

An applet is a Java application, this saves files in a .class extension


The name of a Java program file must match the name of the class with the extension java A True B False?

True


Do you have type a file extension if you want to include the file name?

No, you do not have to type the file extension if you want to include the file name. You only use file extension to make the specific file be able to be run by the program. Example: I want to make my file into a java program so i can use with a specific type of program which only runs java file i put .jav at the end of the title to make it from a text file to a java file.


Files containing Java code must end with what extension?

They end with an extension .java Test.java would be a java source file. The contents of Test.java could be package xyz; import java.util.*; public class Test { ... ... .. . . }


How do you make a java class?

You write the source code, in a text editor, or better in a special IDE. The source code should have the extension ".java". You can have several classes in the same file. Then you compile the class to bytecode; this creates a file with extension ".class".


What is the way to get rid of Java lang no class deffound error?

To get rid of the Java lang no class deffound error, one must add the class or .jar file which contains this class into the Java classpath. When a Java class is run from the command line, one must add a dot (.)