0% found this document useful (0 votes)
61 views2 pages

Oops Important Questions

Oops_Important_questions (10 marks)

Uploaded by

kunnu2202
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

Oops Important Questions

Oops_Important_questions (10 marks)

Uploaded by

kunnu2202
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

10-Mark Questions from OOP Exams

2022 Exam - Section C: Detailed Answer Ques-


tions (10x1 = 10)
1. (a) Explain the compilation and execution process of a Java program
with a proper diagram.
(b) Explain 10 features of the Java programming language.
2. (a) What do you understand by polymorphism? Explain the types of
polymorphism with a proper example.
(b) What do you mean by an abstract class? How is an abstract class
different from an interface?
3. (a) Write a Java program that accepts a temperature in Celsius. It
should throw an exception “Temperature Below Normal” when the
temperature is less than 20°C, throw an exception “Normal Tem-
perature” when the temperature is above 20°C and below 40°C, and
throw an exception “Temperature is High” when it is greater than
40°C.
(b) Explain the use of BufferedReader and BufferedWriter classes
with a suitable example.
4. (a) Describe how inter-thread communication takes place in Java with a
thread lifecycle diagram.
(b) Discuss a generic bounded class with the help of a suitable example.
5. (a) Write a Java Swing program that changes the background color when-
ever a user clicks on a button and displays the message “Welcome to
Java Swing.”
(b) Define an event. How is event handling done in Java? Explain with
an example.

2023 Exam - Section C: Detailed Answer Ques-


tions (10x1 = 10)
1. (a) Explain in detail about Arrays with syntax and example.

1
(b) Describe in detail the types of inheritance in Java.
2. (a) What do you understand by a Layout Manager? Illustrate three
types of layouts available in Java with the help of suitable syntax.
(b) Explain the event handling model in Java with a proper example.
3. (a) What is Open DataBase Connectivity (JDBC)? How is it used in
Java database connectivity?
(b) Write short notes on the following:
i. Toggle buttons
ii. Combo box
iii. Tabbed panes
iv. Scroll panes
4. (a) What do you mean by a Constructor? How many types of construc-
tors are available in Java? Explain with suitable examples.
(b) What do you mean by generics in Java? Explain the advantages and
disadvantages of generic programming in Java.

5. (a) Which is the alternative approach to implement multiple inheritances


in Java? Explain with an example.
(b) What do you mean by an Exception? What is a checked and unchecked
exception? Explain exception chaining.

You might also like