SWARNIM STARTUP & INNOVATION UNIVERSITY
SCHOOL OF ENGINEERING
DEPARTMENT OF COMPUTER ENGINEERING
OBJECT ORIENTED PROGRAMMING WITH JAVA
[Link]: 5TH SEMESTER
Assignment: 1
1. Explain the features of Java that make it platform-independent
and secure.
2. Differentiate between JDK, JRE, and JVM with suitable diagrams.
3. Describe the structure of a Java program with an example.
4. Write short notes on:
(a) Bytecode
(b) Classpath
(c) Java Virtual Machine (JVM)
5. Compare procedural programming with object-oriented
programming.
6. Explain different types of Java applications with real-world
examples.
7. Write a Java program to display “Hello, World!”.
8. Write a Java program to calculate the sum of two numbers
entered by the user.
9. Write a Java program to check whether a number is even or odd.
10. Write a Java program to find the largest of three numbers.
11. Write a Java program to swap two numbers without using a
third variable.