You are on page 1of 1

International Islamic University Islamaad

Course Advanced Computer Programming, SE 241


Instructor Muhammad Imran
Assignment 01
Due Date Monday, March 2nd, 2020
Grade 10 Marks
Note No late submission is accepted under any circumstances.

Answer the following questions by using the concepts delivered in class and doing further required
research to understand them more clearly. You may use figures/diagrams where required.

1. What is JDK, JRE and JVM and what are the differences between them? You may also use any
figure/diagram to further elaborate your answer.

2. What do we mean by the terms Portability and Platform Independence? How is Java platform
independent?

3. Explain the Java program’s compilation and execution process?

4. Suppose you get a new Windows PC for Java programming. You need to have JDK and JRE present to
develop and execute your java programs. How will you check the following?
a. Whether JDK is installed? Which version of JDK is there?
b. Whether JRE and JVM is present? Which version of JRE is there?

5. This question of assignment is to make sure you have witnessed the Java’s Platform Independence based
on the scenario I have explained in class. You are required to write a Hello World program in C++ and
the same program in Java on your Windows PC. Now, you need to use available machines in your IU
Labs and boot using Ubuntu OS and Mac OS separately. There you are required to execute both the
Hello World programs from C++ and Java (you should have an exe file for C++ and a class file for Java).
Now mention your findings in one or two lines along with the screen shots of your execution attempt on
Ubuntu OS and Mac OS.
(You should make sure the presence of JVM on the Ubuntu OS and Mac OS)
Important notes:
 This is an individual assignment. Students are expected not to share answers or ideas.
 The questions are in open ended format. For that reason, you should present your opinion on the issues
you discuss in the best ways possible.
 Provide your answers in a concise manner. Writing high volumes of text are not necessary for reaching
“good” answers and may have a negative impact.
 Plagiarism in the assignment would be dealt strictly; also copying from other students would penalize both
the students.
 This assignment should be submitted via TURNITIN

 (Please ignore if you have performed that step already) To submit the deliverable you need to join the class
on Turnitin and create your account by visiting https://www.turnitin.com/newuser_type.asp?lang=en_us

 Class ID: 24016930


 Join/Enrollment Password: acps2020

Page 1

You might also like