0% found this document useful (0 votes)
33 views1 page

Assignment 1 - Vibuddha Vidarshana

The document discusses the Java programming language and how to compile and run Java programs. It covers topics like the java and javac commands, file extensions for Java programs, and converting source code to bytecode for execution by the JVM.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

Assignment 1 - Vibuddha Vidarshana

The document discusses the Java programming language and how to compile and run Java programs. It covers topics like the java and javac commands, file extensions for Java programs, and converting source code to bytecode for execution by the JVM.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy