Object Oriented Programming with Java (BC03001021)
ASSIGNMENT – UNIT 1
Subject: Object Oriented Programming with Java
Subject Code: BC03001021
Unit: Introduction to Java
Name: ________________________________
Enrollment / Roll No.: ________________________
Class / Semester: ____________________________
Date: ________________________________
INSTRUCTIONS
• Answer all questions in your own words.
• Draw neat diagrams wherever necessary.
• Write Java syntax / examples wherever applicable.
• Mention suitable real-world examples.
QUESTIONS
1. Explain the history and evolution of Java. Why is Java known as a platform-independent
programming language?
2. Discuss the features of Java in detail with suitable examples. Explain any eight features.
3. Explain the architecture of Java with a neat diagram. Describe the role of JDK, JRE, JVM, Class
Loader, Bytecode, and Java Compiler.
4. Write and explain the structure of a Java program. Explain the purpose of package declaration, import
statement, class declaration, main() method, and statements.
5. Differentiate between JDK, JRE, and JVM using a comparison table and suitable examples.
6. Explain Java data types and variables. Differentiate between primitive and non-primitive data types
with examples.
7. Explain operators in Java. Describe arithmetic, relational, logical, assignment, unary, bitwise, and
ternary operators with examples.
8. What is type conversion and type casting in Java? Explain implicit and explicit type casting with
suitable programs.
9. Write a Java program to demonstrate:
• Input from the user
• Arithmetic operations
• Type casting
• Output using [Link]()
— End of Assignment Questions —
Page 1 of 1