Object Oriented Programming With Java
Important Questions
UNIT I
1. Explain the basic concepts of Object-Oriented Programming.
2. Explain constructors and the this keyword with a suitable Java program.
3. Explain String handling in Java and write programs using String methods.
UNIT II
1. Explain inheritance in Java. Discuss different forms of inheritance with examples.
2. What is polymorphism? Explain runtime and compile-time polymorphism with examples.
3. Differentiate between classes and interfaces. Explain how interfaces are defined and implemented in
Java.
UNIT III
1. Explain Java exception handling mechanism with try, catch, throw, throws, and finally blocks.
2. Explain exception hierarchy in Java. How do you create user-defined exceptions?
3. Explain thread life cycle in Java with a neat diagram.
UNIT IV
1. Explain Java Collections Framework. Discuss List, Set, and Map interfaces.
2. Explain the architecture and features of JavaFX.
3. Write the steps to create and run a simple JavaFX application.
UNIT V
1. Explain Event Driven Programming in JavaFX. Describe event sources and event handlers.
2. Explain Mouse Events and Key Events with suitable examples.
3. Explain JDBC architecture and the steps involved in connecting to a database and executing SQL
queries.