Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 1

1.

a. The java command from the JDK executes a Java application.


b. The javac command from the JDK compiles a Java program.
c. A Java program file must end with the .java file extension.
d. When a Java program is compiled, the file produced by the compiler ends with the
.class file extension.
e. The file produced by the Java compiler contains commands that are executed by the Java
Virtual Machine.

2. Convert source code to machine code.

3. C is a middle level language. Java is a high level language.

4. Yes. After compiling it creates a java class file which is executed by JVM. It is same for any
operating system which has JVM(JDK).

5.

6. It means converting source code into byte code. Source code must coverted into byte code to
JVM to execute the program.

7. Open terminal > type the command "touch fileName.java"> Type the java program in text file
and save it (name the class same as file name) > compile the java file using "javac fileName.java"
> run it using "java fileName"

8. java is not installed on Manoj's Dell laptop.

9. “java Example” use to run a compiled java program with class named Example (Example.class)

10. A, G

You might also like