<br>
- 1
Code No: R2022054 R20 SET
IIB. Tcch II Semester Supplementary Examinations, November-2024
JAVA PROGRAMMING
(Common to CSE, IT, CSE(CSBS), & CS)
Time: 3 hours Max. Marks: 70
Answer any FIVE Questions each Question from each unit
All Questions carry Equal Marks
UNIT-I
1
a) Write a java program to read the four floating numbers through the keyboard and [7MJ
find their product and sum.
b) List the different iterative statements supported by java language. Explain any one [7M]
with the help of flowchart and program.
Or
2 a) With the help of example program explain the various relational operators supported [7M]
by language java.
b) Write a detailed note about the tokens in language java.
[7M]
UNIT-II
3 a) What are parameters? How. can we pass the parameters to a method? Explain with [7M]
example program.
b) How can we access the private members of a class? Discuss. [7M]
Or
4 a) How can we control a class not to be inherited by other classes? Explain. [7M]
b) Define a constructor. How can we overload the constructor? Demonstrate with [7M]
simple example.
UNIT-II
5 a) Define inheritance. List their advantages and disadvantages and also list their types.
[7M]
b) Write the similarities and differences between classes and interfaces. [7M]
Or
6 a) How can we implement multiple inheritance in java? Demonstrate with a program. [7M]
b) Why we are using dynamic method dispatch? Explain. [7M]
UNIT-IV
7 a) What are the various keywords used in exception handling mechanism. Explain [14M]
them in detail. Write a sample program to demonstrate the same.
Or
1
of 2
<br>
Code No: R2022054 R20 SET - 1
8 a) Why we need to set the path in java programming? Explain. [7M]
b) Differentiate between checked and unchecked exceptions. [7M]
UNIT-V
9 a) What is multithreaded programming? How can we implement it by using java? [7M]
Explain.
b) Give brief description about result set interface. [7MJ
Or
10 a) How can we modify the string? Explain with example. [7M)
b) Differentiate between multithreaded programming and multi tasking programming. [7M]
2 of 2