Java Programming
Java Programming
Semester: I
Instructions
This paper consists of three sections: A, B, and C. Answer all questions from Section A, any four questions from
Section B, and any three questions from Section C. Marks are indicated against each question.
1.25 x
1 Write down the rules for naming variables in Java
4
5 Write a Java Program to print the message – Hello SMU-CDOE using Java Static Import. 5
1 Write down any five methods available in InputStream class and explain about it in brief. 2x5
2 Write short notes on throw and throws for exception handling in Java. 5+5
3 Write down any 5 reasons that justifies the need of collections classes in java. 2x5
4 What are the two types of threads in Java? Explain it in brief. 2x5