QB Java
QB Java
UNIT-I
1 a) Explain History and Evolution of Java?
7 a) Tell about the varargs in java? Write the syntax and develop any
program.
b) Give the Structure of Java? Explain type of programs in Java.
b) Write a Java program to read and display the array elements in order.
UNIT-II
1 a) What is mean by OOP? Explain OOP Concepts? [CO2][L2] [6M]
5 a) Discuss about the super keyword in java with example. [CO2][L6] [6M]
b) What is an interface? List the rules to create an interface in java with [CO2][L1] [6M]
example
10 a) Recall what is package? Explain how to create user defined package [CO2][L2] [6M]
in java with example
b) Write a java program to find the factorial value of the given number [CO2][L3] [6M]
using user defined package concept.
Question Bank 2021
UNIT-III
1 a) What is a Java Exception and its Types [CO4][L1] [6M]
b) List Java’s Built-in Exception? Write the importance of finally block. [CO4][L3] [6M]
3 Write a java program to create own exception for Negative Value [CO4][L6] [12M]
Exception if the user enter negative value.
4 Explain Exception handling fundamentals [CO4][L2] [12M]
6 Inspect about multiple clauses with an example of arithmetic [CO4][L4] [12M] exception.
b) Evaluate what happens when an exception is thrown by main method? [CO4][L5] [6M]
9 Contract in detail about throw and throws statements with examples [CO4][L4] [12M]
10 a) Give the difference between checked and unchecked exceptions? [CO4][L4] [6M]
UNIT-IV
1 a) What is Multithreading? What are the ways to create multiple threads [CO5][L1] [6M]
in java.
b) Explain about Thread Life Cycle. [CO5][L2] [6M]
2 a) Discuss how to set the priority to threads? What are the different [CO5][L4] [6M]
ranges.
b) Write a java program to create two threads and execute simultaneously [CO5][L6] [6M]
3 a) Tell what is synchronization? Give its types and explain. [CO5][L1] [6M]
5 a) Define String? Explain different String declarations with an example [CO5][L4] [6M]
b) Write a java program to check the given string is palindrome or not. [CO5][L4] [6M]
6 a) Write the difference between String and StringBuffer classes. [CO5][L4] [6M]
b) Create a java program to sort the given names into ascending order. [CO5][L6] [6M]
8 Write a Java program that creates three threads. First thread displays [CO5][L6] [10M]
“Hello!” every one second, the second thread displays “Wear Mask !”
every two seconds and “Use Sanitizer !” every 5 seconds.
9 Write the difference between Extending thread and implementing [CO5][L4] [12M]
runnable?
10 Explain in detail about thread methods? [CO5][L2] [12M]
Question Bank 2021
UNIT-V
2.Discuss about Source, Event and Listeners in event handling [CO6][L6] [6M]
Write a java program to develop Login Window using javafx [CO6][L6] [12M]
7. Write a javafx program using controls (:Checkbox, ToggleButton, RadioButtons, ListView, ComboBox
,ChoiceBox, Text Controls)