0% found this document useful (0 votes)
26 views

Data Members

The document contains questions about Java concepts including type casting, final classes, runtime exceptions, the this keyword, class constructors, method overloading vs overriding, inheritance using the super keyword, exception handling, applets vs applications and the applet lifecycle, packages, conditional operators, vectors vs arrays, variable scope, and the Scanner class.

Uploaded by

Director BGC
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Data Members

The document contains questions about Java concepts including type casting, final classes, runtime exceptions, the this keyword, class constructors, method overloading vs overriding, inheritance using the super keyword, exception handling, applets vs applications and the applet lifecycle, packages, conditional operators, vectors vs arrays, variable scope, and the Scanner class.

Uploaded by

Director BGC
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

a) Define type casting.


b) What is meaning of final class?
c) Define run time Exception?
d) What is the use of “this” keyword?
e) Create a class named Circle with following member

Data Members:

RADIUS

METHODS

- Parameterized constructor to initialize values


- Calculate Area
f) What is the major difference between an interface and a class?
g) What is constructor?

2. Write programs to demonstrate the difference between method overloading and method overriding
in Java?

3. What is inheritance? Demonstrate the use of Super keyword in inheritance with the help of example.

4. What is exception handling? How multiple exceptions are caught in a single program? WAP to
demonstrate the use of custom exception.

5. What is an applet? How it different from an application? Explain the applet life cycle with the help of
an example? Also draw an applet's state transition diagram?

6. Define Package? Broadly explain the utilization of package in java with suitable example.

7. A) Write a Java program to find greatest of a three numbers using conditional operator.

B) How vector is different from array?

8. a) What is scope of a variable?

b) What is a scanner class?

You might also like