19CS0551 Java Programming
19CS0551 Java Programming
Subject with Code : JAVA PROGRAMMING (19CS0551) Course & Branch: B.Tech –
Year & Sem: II-B.Tech & II-Sem CIVIL,MECH&AGRI
Regulation: R19
UNIT-I
1 a) Explain History and Evolution of Java? [CO1][L2] [6M]
2 What are Java Selection Statements? Give an example to each one. [CO1][L1] [12M]
4 Demonstrate what are Jump statements? Give an example for each of [CO1][L2] [12M]
them.
5 a) Define Data Type. Criticize the declaration of variable in Java. [CO1][L5] [6M]
b) What is Byte Code? Interpret the different states of Java Program [CO1][L5] [6M]
execution?
6 a) Write a Java program to interchange the values without using [CO1][L3] [6M]
temporary variable.
b) Write a Java program to use Bit-wise operators. [CO1][L3] [6M]
7 a) Tell about the varargs in java? Write the syntax and develop any [CO1][L2] [6M]
program.
b) Give the Structure of Java? Explain type of programs in Java. [CO1][L2] [6M]
8 a) What is an Array? Explain types of arrays in Java with example. [CO1][L2] [12M]
b) Write a Java program to read and display the array elements in order. [CO1][L2] [6M]
10 What is an Operator? Explain type of operators in Java with example [CO1][L2] [12M]
programs.
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.
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]
UNIT-V
1 Explain about Delegation Event Model in Event Handling with [CO6][L2] [12M] example.
b) Discuss about Source, Event and Listeners in event handling [CO6][L6] [6M]
3 Write a java program to develop Login Window using AWT [CO6][L6] [12M]
4 a) List out any 10 AWT classes and their syntax. [CO6][L1] [6M]
6 Write a java program to develop Notepad Application using AWT. [CO6][L6] [12M]
8 Write a java swing program to find the sum of two numbers. [CO6][L6] [12M]
9 Write a java swing program to find the factorial of the given number [CO6][L3] [12M]