16792171314JAVA PROGRAMMING
16792171314JAVA PROGRAMMING
JAVA PROGRAMMING
(AIML)
Time: 3 hours Max. Marks: 70
Answer ONE question from each unit
All Questions Carry Equal Marks
All parts of the questions must be answered at one place only
UNIT – I
1 a Explain about Java Features. K2 CO1 [7M]
b Explain in detail about the Operators in Java with suitable examples. K2 CO1 [7M]
OR
2 a Explain in detail about control statements in Java with suitable examples. K2 CO1 [7M]
b What are the Iteration Statements in Java? Explain with Example. K2 CO1 [7M]
UNIT – II
3 a Define Array. Write about different Operations on Array Elements. K2 CO2 [7M]
b Explain in detail about constructors and its types with suitable examples. K2 CO2 [7M]
OR
4 a Explain about the various String handling methods in Java with suitable K2 CO2 [7M]
examples.
b Write a Java Program to illustrate “Method Overloading”. K3 CO2 [7M]
UNIT – III
5 a Define Inheritance. Write about Multi-level inheritance. K1 CO3 [7M]
b Explain in detail about Interfaces with suitable examples. K2 CO3 [7M]
OR
6 a Write a Java program to create an interface ‘prime’ and has a method K3 CO3 [7M]
‘display’. It should take an integer input and returns the total number of
prime number between 2 and integer ‘n’.
b Explain how to implement multiple inheritance using Interface. K2 CO3 [7M]
UNIT – IV
7 a With a suitable Java program explain user-defined exception handling. K2 CO4 [7M]
b Write a Java program to create an exception super class called Exception K3 CO4 [7M]
A and exception sub class Exception B and Exception C, where
Exception B inherits from Exception A and Exception C inherits from
Exception B. Write a java program to demonstrate that the catch block
for type Exception A catches exception of type Exception B and
Exception C
(P.T.O)
OR
8 a Explain about Wrapper Class with Example K2 CO4 [7M]
b How to define a package? How to access, import a package? Explain K2 CO4 [7M]
with examples.
UNIT – V
9 a What is Thread in Java. Explain about Thread Life Cycle in detail. K2 CO5 [7M]
b Explain about Thread Priorities in Java K2 CO5 [7M]
OR
10 a Write a Java program to implement the Producer – Consumer problem K3 CO5 [7M]
using Inter-thread Communications.
b Explain about “Establishing JDBC Database Connections”. K2 CO5 [7M]
*****