Uploaded by chetandeshmukh536

JAVA-II QB

advertisement
Chapter 1
Q1. What is Collections Framework? Also state its advantages.
Q2. What is HashMap? Describe with example.
Q3. What is the use of LinkedList class? Explain with example.
Q.4 What is Iterator interface? Describe with example
Q5.Write Java Program for Arraylist.
Chapter2
Q1. What will be the output of the program?
class Test extends Thread {
public void run() {
System.out.println("Run");
}
}
class Myclass {
public static void main(String[] args) {
Test t = new Test();
t.start();
}
}
Q2. What is multithreading? Explain with diagram.
Q3. What is synchronization? Why it is needed? Describe in detail.
Q.4 Describe life cycle of thread with diagram.
Q5. What is thread? Define multithreaded program. What is its purpose in
Java?
Rference Book Questions-
Download