0% found this document useful (0 votes)
39 views2 pages

Important Question Set Java 220608 202435 Edited Signed Edited Edited

Uploaded by

vedived92
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)
39 views2 pages

Important Question Set Java 220608 202435 Edited Signed Edited Edited

Uploaded by

vedived92
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

msbtebook.blogspot.

com By Nitin Sir

Important Question
Java Programming
Type 1: Basic Construct in JAVA

1. List any eight features of Java.


2. Explain any two logical operators in Java with example
3. Explain the concept of platform independence and portability

Derived Construct in JAVA

1. Create class employee with data member, name and salary accept
data for five objects and display it.
2. Define a class student with int rollno and string name as data members and a method void
SetData ( ). Accept and display the data for five students
3. Define a class circle having data members Pi and radius. Initialize and display values of data
members also calculate area of circle and display it.
4. Define class and object.
5. Explain constructor with its type, Give example of parameterized constructor.
6. Define array. List its types.
7. Differentiate between array and vector
8. Describe the use of any methods of vector class with their syntax
9. Differentiate between method overloading and method overriding
10. Write a program to create vector with five elements as (5, 15, 25, 35, 45). Insert new
element at 2nd position. Remove 1st and 4th element from vector
11. Differentiate between String and String Buffer.
12. Explain dynamic method dispatch in Java with suitable example
13. Explain the four access specifiers in Java

Inheritance, Interface and Package


1. Implement the following inheritance.

By : Vishal Chavare
By Nitin Sir

2. Define packages. How to create user defined package? Explain with example.
3. List any four Java API packages.
4. State use of finalize( ) method with its syntax.

Exception Handling & Multithreading


1. Explain the following terms w.r.t exception handling: (1) Try - catch (2) Throw (3) Throws
(4) Finally
2. Explain life cycle of thread
3. Write a program to input name and salary of employee and throw user defined
exception if entered salary is negative
4. Write a program to create two threads. One thread will display the numbers from 1 to
50 (ascending order) and other thread will display numbers from 50 to 1 (descending
order)

Java Applet and Graphics and Programming


5. Explain life cycle of thread
6. Explain how to pass parameter to an applet? Write an applet to accept username in the
form of parameter and print “Hello ”.
7. Write a syntax and example of (i) drawRect( ) (ii) drawoval( ) drawLine ( )

I/O Files in Java


1. Distinguish between Input stream class and output stream class
2. Write a program to copy contents of one file to another file using character stream classes.

You might also like