Unit-I
(a) Why is Java object-oriented programming? Also explain the characteristics of Java.10
(b) What is JVM? 5
or
2, Define the following terms:
a. Data types and casting
b. Operator precedence
c. Java class libraries 3X5=15
Unit-2
3.
a. what is constructor? Explain various types of constructor with suitable example.7
b. What is constructor overloading? Explain constructor overloading with java program.8
4. Explain the following:
a. Abstract Class. 5
b. Type wrappers 5
C, Super and sub class 5
Unit-3
5
a. Write the ways to compare strings in java by suitable example. Describe any three
strings handling class in java. 9
b. Write a java program t convert string to string array, 6
6.
a. What is the difference between "null" and "empty" strings? Explain with example 7
b. What is the difference between "immutable" and "mutable" strings? Explain with example 8
Unit 4
7. Describe the different states of a thread in Java, and explain how a thread transitions
between these states. 15
8.. Explain the exception handling mechanism with block diagram and example? 15
Unit 5
9 What is the lifecycle of a Java Applet, and what methods are called at each stage? 15
10 (A What is the purpose of the appletviewer tool in Java?. 5
B How do you deploy a Java Applet on a web page?5
C How do applet differs from application program? 5