CSE(AI&ML) DEPARTMENT
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
Unit-1 Important Questions
1 marks Questions
1. What is encapsulation in OOP?
2. Define abstraction with an example.
3. What is the significance of the this keyword in Java?
4. Name any two Java buzzwords.
[Link] between == and .equals() in Java.
6. What is method overloading?
7. What is garbage collection in Java?
8. Write the syntax of a simple for loop in Java.
10 marks Questions
1. List and Explain Java Java Buzzwords in detail.
2. Demonstrate different Control Structures with Syntax and Examples.
3. Explain about OOPS paradigm in detail.
4. Describe about Constructors and its types with an example.
5. What are the different Accesss Specifiers in [Link] in detail.
6. Describe Type Casting and Type Conversion with an example.
7. Define [Link] with a factorial of a number program.
8. List the all primitive datatypes in java.
9. Describes the scope and life time of varibles.
10. Explain about nested and inner classes with java code
Unit-2 Important Questions
1 marks Questions
1. What is a subclass in Java?
2. Define polymorphism.
3. What is the use of the final keyword in inheritance?
4. What does CLASSPATH refer to in Java?
5. How do you implement an interface in Java?
[Link] between abstract class and interface.
7. What is the super keyword used for?
8. Can we create an object of an abstract class? Justify.
10 marks Questions
1. what is inheritance?Explain all types in detail?
2. Define Polymorphism?What are its types?
3. Define a package?why it is used in java?Explain
4. Write a java program to demonstrate Super Keyword?
5. How an interface being inherited to a class and to a interface with a program?
6. Write about final keyword in java?
7. What is Data Abstraction in java?Implement Abstraction by using Abstract class
and abstract methods?
8. Distinguish between classes and interfaces.
9. Define an interface? how to implementing the interfaces with examples.
10. What are the forms of inheritance?
Unit-3 Important Questions
1 marks Questions
1. What is an exception?
2. Differentiate between throw and throws.
3. What is a daemon thread?
4. Define multithreading.
5. What is the purpose of the finally block?
6. What is the default priority of a thread?
7. Name the method used to start a thread.
8. What is the purpose of the synchronized keyword?
10 marks Questions
1. Illustrate brifely the usage of five keywords in Exception Handling?
2. Develop a java program to handle Array out of Bounds Exception?
3. Define a String?Explain String Handling functions?
4. Describe the life cycle of a thread in detail with a neat diagram?
5. Difference between Mutlitasking and multithreading?
6. Discuss and differentiate the ways of creating threads in java using the thread class
and runnable interface?
7. Summarize the methods of Inter thread communication?
8. Explain all thread class methods in detail?
9. Describes Enumeration data type in java.?
10. Explain about Exception hierarchy?
Unit-4 Important Questions
1 marks Questions
1. What is an event listener?
2. Define delegation event model.
3. Name two components of AWT.
4. What is an adapter class?
5. Which class is used to create a button in AWT?
6. What is the use of a layout manager?
7. What type of layout is the default for a Frame?
8. Name one class used for keyboard event handling.
10 marks Questions
1. Explain the delegation event model in Java with examples.
2. Write a Java program to handle mouse events.
3. Write a Java program to handle keyboard events.
4. Describe the AWT class hierarchy in detail.
5. Write a program using adapter classes to handle window events.
6. Discuss various types of layout managers with suitable examples.
7. Explain about an event classes an event sources
8. What are the components in AWT?
9. Notes on list panels.
Unit-5 Important Questions
1 marks Questions
1. What is an applet?
2. List any two differences between applets and applications.
3. Name two Swing components.
4. What is MVC architecture in Swing?
5. What is the life cycle method that initializes an applet?
6. What is the role of JComponent in Swing?
7. Which class is used to create a combo box in Swing?
8. What is the purpose of JTabbedPane?
9. Name a container used in Swing.
10. What is the main difference between AWT and Swing?
10 marks Questions
1. Describe the life cycle of an applet and write a sample applet program.
2. Compare and contrast AWT and Swing with examples.
3. Explain the MVC architecture followed in Swing.
4. Write a Java program to demonstrate various Swing components.
5. Discuss different types of applets and how parameters are passed to them.
6. Explain how to create menus, trees, and tables in Swing applications.
7. Difference between an Applets and Applications.?
8. Explain about types of applets with neat diagram?
9. Define components and containers in Swings?
10. Explain about concepts of applets.?