0% found this document useful (0 votes)
78 views

Assignment 1

The document provides information about a Java developer course including assignments on Java fundamentals. It asks questions about Java concepts like the Java runtime environment, the role of compilers, differences between Java and C, cross-platform capabilities, and valid Java main method declarations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Assignment 1

The document provides information about a Java developer course including assignments on Java fundamentals. It asks questions about Java concepts like the Java runtime environment, the role of compilers, differences between Java and C, cross-platform capabilities, and valid Java main method declarations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

IJSE CMJD | Comprehensive Master Java Developer

Institute of Software Engineering


Diploma in Comprehensive Master Java Developer (CMJD)

Batch - CMJD105
Module – Programming Fundamentals
Assignment - 01
IJSE CMJD | Comprehensive Master Java Developer

1. Fill in the blanks in each of the following sentences about the Java environment:
a. The ________ command from the JDK executes a Java application.
b. The ________ command from the JDK compiles a Java program.
c. A Java program file must end with the ________ file extension.
d. When a Java program is compiled, the file produced by the compiler ends with the
_________ file extension.
e. The file produced by the Java compiler contains _________ that are executed by the
Java Virtual Machine.

2. What is the task of the compiler in programming languages?

3. What is the difference between C and Java languages?

4. If we compile a Java program in the Windows environment, can we run that program in
any other operating system? Explain your answer briefly.

5. What is the difference between Java interpreter (in JVM) and O/S interpreter (Command
Interpreter)?

6. What is the meaning of “Compile” in Java language? And why is that necessary?

7. What are the steps needed to create and run a Java program in a Linux environment?

8. Akila creates a Java program in his HP laptop machine. He gave the compiled code (Class
File) to Manoj to run that program on his computer. But Manoj’s laptop brand is Dell.
When Manoj tried to run the program, it didn’t work. What can be the reason for that?

9. Explain the command “java Example” that we write in Terminal.

10. Which of the following main method declarations are valid (Runs without errors) ?
A. public static void main(String args[]){ }
B. public void main(String args[]){}
C. static void main(String args[]){}
D. public static void main(String args){ }
E. void main(String args[]){ }
F. public static void main(){ }
G. static public void main(String args[]){ }
H. void main(String args){ }
I. public static main(String args){ }
J. public static void main(String []){ }
K. static void public main(String args){ }

You might also like