OOPS PART-B
OOPS PART-B
4. Develop a Java class named Student that has the following fields: name,
rollNumber, and marks. Include methods to calculate and display the
student's grade based on the marks. Write a main method to create at least
two Student objects and print their grades.
5. Discuss about different types of access specifiers with suitable example
program.
6. Explain in detail about static variable and static method in Java with
example.
UNIT-II
1. Discuss about method overloading and method overriding with suitable
example.
2. Discuss the role of the super keyword in Java inheritance. Provide an
example that illustrates how it is used to call a parent class constructor.
3. With diagrammatic illustration and java programs explain the different
types of inheritance with an example.
4. Explain abstract classes with suitable example.
5. Design a Java package for a simple online bookstore system. Include
classes for Book, Customer, and Order. Explain how to manage member
access and import the package.
6. Design a Java class structure for a simple library management system
using classes, inheritance, and interfaces.
UNIT-III
1. Discuss about try, catch and finally keywords in exception
handling with an example.
2. Explain in detail the various exception types with its hierarchy
3. Write programs to illustrate ArrayIndexOutOfBounds Exception and
Arithmetic Exception.
4. Describe the life cycle of thread and various thread methods.
5. Discuss the two ways of thread creation? Explain with suitable examples.
6. Write a java program for inventory problem to illustrate the usage of thread
synchronized keyword and inter thread communication process. They have
three classes called consumer, producer and stock.
UNIT-IV
1. Write a java program to read and write a text file using character stream
and buffer stream
2. Explain in detail about generic classes and methods in java with suitable
example.
3. What are the restrictions are considered to use java generics effectively?
Explain in detail.
4. Apply the string handling functions to do the following operations (i)
Compare the two strings. (ii) Reverse the String.”Happy”
5. Explain the all the string operators with syntax and example.
6. Explain the string buffer methods with an example.
UNIT-V
1. Explain the JavaFX Architecture in detail.
2. Explain the following control with an example,CheckBox, RadioButton
and Combobox
3. Write a JavaFX program to create a login page, which demonstrates
controls in JavaFX such as Labels, Textviews and button.
4. Explain the Event Handling with example.
5. Explain HBox & VBox in JavaFX with suitable example.
6. Write a Java program to create a menu bar and add menu to it and also add
menuitems to the menu.