Core Java Questions
1. Why java doesn’t have diamond problem?
2. Difference between Jframe & JdialogBox?
3. Why we use Thread & Runnable in java?
4. What do you mean by port?
5. Write different type of JDBC Drivers?
6. How to close a window using a button?
7. What are different types of layout?
8. On which stream we can use flush?
9. What are difference between abstract class & interface?
10. When we use window adaptor & window listener?
11. How we make heterogeneous arraylist(except using object ref.)?
12. Difference between concurrent & simultaneous thread?
13. When we use inner action listener class & when extend window listener?
14. Difference between thread & process?
15. How to convert stream into reader & vice versa?
16. Types of running way of Applets?
17. How we can transport mp3 file over client-Server connection?
18. Difference between Comparable & Comparator?
19. What is need of interface over abstract class?
20. How can we implement copy constructor in java?
21. What is thread?why its calleed light wt. process?
22. List out methods of object class?
23. What is stack unwinding & how does it occur?
24. Difference between runtime error & exception?
25. Can we use pointers in Java?
26. What is wrapper classes ?Are they immutable ?Difference between muttable & immutable?
27. Why cant we put string as a acse label in switch case?
28. How can we restrict the user to enter letters in textbox?
29. How can we convert hashmap to a synchronized hashmap?
30. Explain producer and Consumer problem?
31. How many threads can we have in a single class?
32. Difference between arraylist .sort & [Link]?
33. What is difference between paint component & repaint?
34. Use of join & wait in thread?
35. What is factory Method?
36. Difference Between light weight and heavy weight component?
37. Why thread is light weight component?
38. What clone method does?
39. What is a port number, who initiates the connection in client & server chat application?
40. How you find the string an acts and acts123 in this acts123 is invalid?
41. Why we use Runnable interface?
42. Diff between Checked and Unchecked Exception?
43. Explain public static void main(String []args) ?
44. What happen if we don’t write or pass (string [] args) in main method?
45. Use of static block?
46. Difference between thread class and Runnable interface?
47. How to restrict creation of object ?
48. What are properties and usage of singleton class?
49. What is the diff between Application and Applet?
50. If we have to do collection in synchronize form then how can we do this?
51. What is replacement of copy constructor in java ?why copy constructor don’t use in java?
52. What is data hiding?
53. What is interface?
54. Diff between encapsulation and data hiding?
55. How to Input and display without scanner?
56. .What is Autoboxing?
57. What is diff between Serversocket and Socket?
58. How to validate textfield?
59. What is diff between AWT and Swing?
60. What is the instance variable ? What is the diff between instance variable and non-instance
variable ?
61. What is diff between abstract class and interface?