Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

JAVA QUESTION

Answer any five.

1(a).Define Java and explain main features of Java? 7

(b).How Java differs from C and C++,explain it thoroughly? 7

2(a).Why we use Java Virtual Machine (JVM)? Explain about Platform independent feature is Java? 7

(b).What are the data types found in Java ? How many types of variables found in Java? 7

3.(a).Explain “public static void main(String[] args)” and give sample example of Java Program. 7

(b).What is the difference between an Applet and Application? 7

4(a).What is Class and Object? Write a program to find the factorial of a number using class and object 7

(b).Explain all types of looping with example in java. 7

5 (a).Define Inheritance .Describe different types of Inheritance in Java. 7

(b).Explain Method overloading and Method Overriding with example. 7

6(a).What is Exception?List some of the most common types of Exceptions that might occur in java? 7

(b).What is Interface?Describe the various forms of implementing interface. 7

7.(a)Explain Abstract method and class with example? 7

(b).What are Wrapper Class? Write its applications. 7

8(a).Define a package? What are the applications of a package? 7

(b).How do you create a package and use it? Explain with an Example. 7

9(a).What is Synchronization and Why is it important? 7

(b).Define a thread? Describe the complete life cycle of a thread. 7

10. Write short notes any two of the following: 7*2=14

(a).Final Keyword

(b).Constructors

(c).Vector

(d).Operator and Expression

You might also like