38JavaProgrammingMarch2023
38JavaProgrammingMarch2023
SECTION _ A
1) What are the default values of Boolean and Char primitives data types in
Java ?
P.T.O.
cs - 499 IlllffiffiililtIilililtffitilll
SECTION -B
ll. Answer any five questions. (5x10=50)
13) a) Explain the features of Java. 7
b) Explain the difference between Java and C++. 3
14) a) Mention any five Mathematical functions of math class with examples. 5
b) Explain constructgr a!9 its types with example. 5
15) a) Demonstrate'this'keyword with simple Java program. 5
b) Define inheritance. Explain any two types of inheritance with example. 5
16) a) Write a program to sort the given numbers with exception handling
concept. 5
b) Explain the process of creating user defined package with an example. 5
17) a) Explain the life cycle of a thread. 5
b) Write the steps involved in creating thread by implementing runnable
interface. 5
18) a) Explain user defined exceptions in Java. 5
b) Explain life cycle of an applet with a neat diagram. 5
19) a) Explain any five methods of graphics class with an example for each. 5
b) Write a program to implement keyboard events. 5
20) a) Explain the use of FilelnputStream class and OutputStream class. 5
b) Explain any fivq, string methods with syntax and example. 5