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

Java_IA2 Question Bank

Uploaded by

C.M Srinivas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Java_IA2 Question Bank

Uploaded by

C.M Srinivas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

OOPS with JAVA

BCS306A
Question Bank

1. Explain different type of inheritance in JAVA along with sample programs.


2. What is inheritance? What is the advantage of inheritance? Develop a JAVA
program to create a class named shape. Create three sub classes namely:
circle, triangle and square, each class has two member functions named
draw () and erase (). Demonstrate polymorphism concepts by developing
suitable methods, defining member data and main program.
3. With suitable code segments illustrate the various uses of ‘final’ keyword?
4. What is abstract class? Explain with example
5. What is method overriding? Explain how method overriding supports
polymorphism with example.
6. Demonstrate dynamic dispatch using abstract class in JAVA.
7. What is an interface? Illustrate with an example how multiple Inheritances is
implemented in Java.
8. Define package. Write a Java program to create and import the package to
make use of class declared in package
9. Write a JAVA program to demonstrate the producer consumer problem using
synchronized threads.
10.Define a thread. Explain the various ways the threads can be created in Java.
11.With a sample program to describe the exception handling mechanism in
java?
12.What is enumeration? Explain values() of valueOf() methods
13.What is autoboxing and autounboxing in arithmetic expression? Explain
with example
Note: Lab programs from 5-12

You might also like