[go: up one dir, main page]

0% found this document useful (0 votes)
50 views5 pages

QB Java

Uploaded by

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

QB Java

Uploaded by

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

Question Bank

UNIT-I
1 a) Explain History and Evolution of Java?

b) Summarize Java Buzz Words?

2 What are Java Selection Statements? Give an example to each one.

3 Illustrate the Iteration Statements with example.

4 Demonstrate what are Jump statements? Give an example for each of


them.
5 a) Define Data Type. Criticize the declaration of variable in Java.

b) What is Byte Code? Interpret the different states of Java Program


execution?
6 a) Write a Java program to interchange the values without using
temporary variable.
b) Write a Java program to use Bit-wise operators.

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.

8 a) What is an Array? Explain types of arrays in Java with example.

b) Write a Java program to read and display the array elements in order.

9 List the Java Tokens and discuss in detail.

10 What is an Operator? Explain type of operators in Java with example


programs.
Question Bank 2021

UNIT-II
1 a) What is mean by OOP? Explain OOP Concepts? [CO2][L2] [6M]

b) Explain in detail about Garbage Collector in Java. [CO2][L3] [6M]


2 a) Define Class, Method and Object? Show the syntax to define these [CO2][L2] [6M]
in java.
b) What is a Constructor? Explain types of Constructors in Java? Write a [CO2][L2] [6M]
java program to find the Area of Circle using Constructor.
3 Discuss about the static, final keywords with an example. [CO2][L6] [12M]
4 a) Recall Inheritance? Illustrate the types of inheritances. [CO2][L2] [6M]

b) Write a java program to implement multilevel inheritance concept. [CO2][L3] [6M]

5 a) Discuss about the super keyword in java with example. [CO2][L6] [6M]

b) Compare Method Overriding and Method Overloading. [CO2][L5] [6M]


6 Explain about the Dynamic Method Dispatch in Java with example [CO2][L2] [12M]
program.
7 What is an abstract class? Explain all the cases to implement abstract [CO2][L2] [12M]
class.
8 a) Create a java program to display “Hello! Java” using Class, Object [CO2][L6] [7M]
and Method.
b) Give the differences between Abstract class and Interface [CO2][L4] [5M]

9 a) Discuss in detail about Abstract Classes in Java [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) Explain about try, catch, statements with examples [CO4][L2] [6M]

2 a) Demonstrate Nested try statements with an example [CO4][L2] [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]

5 a) Show what is meant by Uncaught Exception [CO4][L1] [6M]

b) Explain Java exception hierarchy [CO4][L2] [6M]

6 Inspect about multiple clauses with an example of arithmetic [CO4][L4] [12M] exception.

7 a) Explain about creating your own Exception clauses [CO4][L6] [7M]

b) Can we have an empty catch block? Justify [CO4][L5] [5M]

8 a) Summarize in detail about chained Exception? [CO4][L2] [6M]

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]

b) Show the use of finally statements with examples [CO4][L1] [6M]


Question Bank 2021

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]

b) Write a java program to implement inter thread communication. [CO5][L6] [6M]

4 a) Define Daemon Threads? Explain with an example. [CO5][L2] [6M]

b) Write a java program to implement join() method in multithreading. [CO5][L3] [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]

7 List and explain any five string methods. [CO5][L1] [12M]

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

1. Explain about Delegation Event Model in Event Handling with example.

Write a java program to implement Mouse Events. [CO6][L6] [6M]

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]

3. Demonstrate the Layout Managers in java? Explain.


[CO6][L2] [6M]

4. a) Write a java program to implement Key events [CO6][L3] [6M]

b) Create a javafx program implement Border Layout. [CO6][L6] [6M]

5. Write a javafx program using menus and menuitems [CO6][L6] [12M]

6. Explain the following layout managers.


[CO6][L2] [12M]

(a) Border layout.


(b) Grid layout.
(c) Flow layout.

7. Write a javafx program using controls (:Checkbox, ToggleButton, RadioButtons, ListView, ComboBox
,ChoiceBox, Text Controls)

You might also like