B.E/B.Tech Degree Examinations, Nov/Dec 2021 - Feb 2022: Reg. No
B.E/B.Tech Degree Examinations, Nov/Dec 2021 - Feb 2022: Reg. No
B.E/B.Tech Degree Examinations, Nov/Dec 2021 - Feb 2022: Reg. No
(Regulations 2020)
K-Level CO No.
Why “static” access modifier is specified in “public static void CO1
1. main(String a[])” K1
Articulate the syntax to access the same variable defined in two CO2
4. interfaces implemented by the same class? K2
6. Specify the Java API’s that contains all classes for handling IO-streams K1 CO4
Mark
K-Level CO No.
Split up
11. a) Explain the concepts of object oriented programming with an
13 K2 CO1
example.
OR
b) i) Point out the justification of the statement “Java is platform 2 K1
independent”. CO1
ii) Articulate the concept of Java package with suitable program. 11 K3
13. a) Explain the different types of Exceptions and the keywords associated
13 K1 CO4
in Java Exception with suitable programs.
OR
b) i) List the streams used in java. 2 K1
ii) What exception is thrown when Reading is not done properly in 1 K4
file.
CO4
iii) Explain in detail about the following with sample program 10 K1
a)Reading from a file b)Writing in a file.
14. a) (i) Describe the creation of single thread and multiple thread using a 7
suitable example. K1 CO5
(ii) Explain the various thread methods with suitable examples. 6
OR
b) i) Using a simple example, explain Synchronization concept in java 7 K2
ii) Illustrative a Generic Method for sorting an array of integer 6 K2 CO5
objects.
PART- C (1 x 15 = 15 Marks)
Mark
Split up K-Level CO No.
16. a) i) Elaborate the concept of Inner class. 5
ii) Define object cloning and state the difference between shallow 10 K4 CO3
and deep cloning with suitable program.
OR
If the average of marks is <60 and >=40 then prints Grade ‘C'