GOVERNMENT FIRST GRADE COLLEGE, NAVANAGAR,
BAGALKOT
[Link] III Semester – Assignment
Subject: Object Oriented Programming in Java (2A3COMM03T)
UNIT – I: Fundamentals of OOP and Java Basics
2 Marks Questions (Answer any 5)
• Define Object-Oriented Programming.
• List any four features of Java.
• What is the role of JVM in Java?
• Differentiate between object and class.
• Write the syntax of a simple Java program.
5 Marks Questions (Answer any 4)
• Explain the basic principles of Object-Oriented Programming with suitable examples.
• Describe the features of Java and its advantages over other languages.
• Explain the different data types and control flow statements in Java with examples.
• Discuss the differences between Procedural Programming and Object-Oriented
Programming.
UNIT – II: Classes, Constructors, and Inheritance
2 Marks Questions (Answer any 5)
• Define constructor and write its syntax.
• What is constructor overloading?
• Define inheritance.
• What is the purpose of the super keyword?
• Write the difference between method overloading and overriding.
5 Marks Questions (Answer any 4)
• Explain different types of inheritance supported in Java with examples.
• Describe the use of this and super keywords with suitable examples.
• Explain the concept of dynamic method dispatch with an example program.
• Write a note on abstract classes and methods in Java.
UNIT – III: Interfaces, Packages, and File Handling
2 Marks Questions (Answer any 5)
• What is an interface in Java?
• Define a package.
• What is the difference between an interface and an abstract class?
• What is serialization?
• Name any two classes of the Java I/O package.
5 Marks Questions (Answer any 4)
• Explain the concept of interfaces in Java with syntax and example.
• Describe how packages are created and imported in Java programs.
• Explain file handling in Java using byte and character streams.
• Discuss the concept of serialization and deserialization with an example.
UNIT – IV: Exception Handling, Event and GUI Programming
2 Marks Questions (Answer any 5)
• What is an exception in Java?
• Define try, catch, and finally blocks.
• What is an event in Java GUI programming?
• List any two layout managers.
• What is the use of throw and throws keywords?
5 Marks Questions (Answer any 4)
• Explain Java exception handling mechanism with suitable example.
• Describe different types of exceptions in Java and their handling methods.
• Explain various GUI components in Java and their event handling mechanism.
• Write a Java program to create a simple GUI application using AWT components.