R20-ECE-oops- java important questions-


Sub: Oops Through Java

(COMMON TO ECE-A,ECE-B,ECE-C)





Unit-1
1. Explain
    a. Methods
    b. Classes and instances
    c. Messages
    d. this keyword/reference.
2. Distinguish between object-oriented programming and object-based programming.
3. Write a program to read a number of any lengths. Perform the addition and subtraction
on largest and smallest digits of it.
4. What is Overloading? Explain Method overloading with an example.
5. State and explain various types of constructors.
6. What are the components of java architecture? Explain in detail.
7. List of Buzzword/Features in java?
8. What is the string and StringBuffer class methods used in JAVA?


Unit-2


1. Explain the member access mechanism in inheritance with an example.
2. Explain the procedure to call super class members with an example.
3. Give the general form of the import statement. Illustrate a Java program that
creates a package and uses it.
4. Define abstract class and interface. What are the differences between them?
Explain with suitable examples.
5. What is multiple inheritance? Explain how it can be implemented in Java withthe
help of an example.
6. Explain the concept of interfaces with suitable examples.
7. Explain user defined packages in JAVA with suitable examples.
8.
Define inheritance? Why java does not support that concept explain with
example program.
an

                                                                        Unit-3

1. What are the four forms of method repaint()? Explain their usage with a
sample java program.
2. Define event? Explain the event types(mouse and keyboard) with suitable Example.
3. What is the lifecycle of an applet? Which method is used for setting security in
applets?
4. What is delegation events model? Explain.What are the benefits?
5. What is an adaptor class? Describe about various adaptor class in detail.
6. Explain the list of Layout Managers in with suitable examples.
7. Define swing, Explain in detail.
8. Briefly explain the following terms:
        a. Component
        b. Container
        c. Panel
        d. Window
9. Explain the following AWT components with example
        a. JBotton
        b. JCheck boxes
        c. JRadio buttons
        d. JCombo boxes

Unit-4

1. Explain BufferedReader and BufferedWriter classes from IO package with an
example.
2. Explain Byte input/output stream classes in java with suitable example.
3. Explain Character input/output stream classes in java with suitable example.
4. Explain RandomAccessFile class with suitable examples.
5. Explain FileInputStream and FileOutStream classes from IO package with an example.

Unit -5

1. Define Thread? Explain Life Cycle of Thread.
2. Write a java program to implement Thread using extends and implements Runnable
interface.
3. Explain concept Thread Synchronization with suitable examples.
4. Write briefly on multithreaded programming and inter thread communication in java
5. Explain the working of Java errors and exception detecting and correcting mechanism.
6. Create a try block that will generate three types of exception and also create
necessary catch blocks to catch these exceptions and handle these. You should also
use finally statement in your block.
7. Explain in detail about User Defined Exception in Java.
8. Distinguish between checked and unchecked exceptions
9. Explain in detail about JavaBeans and java.net package.

No comments

Web Development with PHP Course

  Course : Web Development with PHP The Importance Of PHP Web Development Website development is rapidly growing tool for business developme...