Want this question answered?
It is most likely an "import Java. ...." statement. Which imports packages to be used in the source file. Or a class declaration "public class myClass { ".
in .exe file it contains machine understandable code. but in .class file it contain only byte code which is not understadable by the microprocessor it will understud by the jvm only . we con't execute .class file without jvm . but we can execute .exe file without c-compiler .
Java source files have the .java extension, compiled Java class files have the .class extension.
'.java' files contain java source code. One can access these files on windows by using 'notepad'.
.class is the extension of a java byte code file.
It is most likely an "import Java. ...." statement. Which imports packages to be used in the source file. Or a class declaration "public class myClass { ".
file class contain methods or functions that handle various file stream operations.
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.
in .exe file it contains machine understandable code. but in .class file it contain only byte code which is not understadable by the microprocessor it will understud by the jvm only . we con't execute .class file without jvm . but we can execute .exe file without c-compiler .
You need a decompiler to convert class files to java source files. JAD is a Java Decompiler that can do it for you.
Java source files have the .java extension, compiled Java class files have the .class extension.
A Java source code file can contain any number of classes. However, only one one of them can contain the main method which is called upon execution after compilation of the source code. However, this is a bad practice that needs to be avoided. Generally, one of those classes is the actual class while the other is a test 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".
'.java' files contain java source code. One can access these files on windows by using 'notepad'.
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
stdio.h
.class is the extension of a java byte code file.