You are on page 1of 3

Programming paradigm

Java Questions

1. Can a main() method of class be invoked in another class?


2. What is the difference between java command line arguments and C command line
arguments?
3. What is the difference between == & .equals
4. What is the difference between abstract class & Interface.
5. What is singleton class & it's implementation.
6. Use of static,final variable
7. Examples of final class
8. Difference between Event propagation & Event delegation
9. Difference between Unicast & Multicast model
10. What is a java bean
11. What is synchronized keyword used for.
12. What are the restrictions of an applet & how to make the applet access the local
machines resources.
13. What is reflect package used for & the methods of it.
14. What is serialization used for
15. Can methods be overloaded based on the return types ?
16. Why do we need a finalze() method when Garbage Collection is there ?
17. Difference between AWT and Swing compenents ?
18. Is there any heavy weight component in Swings ?
19. Can the Swing application if you upload in net, be compatible with your browser?
20. What should you do get your browser compatible with swing components?
21. What are the methods in Applet ?
22. When is init(),start() called ?
23. When you navigate from one applet to another what are the methods called?
24. What is the difference between Trusted and Untrusted Applet ?
25. What is Exception ?
26. What are the ways you can handle exception ?
27. When is try,catch block used ?
28. What is finally method in Exceptions ?
29. What are the types of access modifiers ?
30. What is protected and friendly ?
31. What are the other modifiers ?
32. Is synchronised modifier ?
33. What is meant by polymorphism ?
34. What is inheritance ?
35. What is method Overloading ? What is this in OOPS ?
36. What is method Overriding ? What is it in OOPS ?
37. Does java support multi dimensional arrays ?
38. Is multiple inheritance used in Java ?
39. How do you send a message to the browser in JavaScript ?
40. Does javascript support multidimensional arrays ?
41. Is there any tool in java that can create reports ?

Department of Computer Science and Engineering, maamallan institute of technology


Programming paradigm

42. What is meant by Java ?


43. What is meant by a class ?
44. What is meant by a method ?
45. What are the OOPS concepts in Java ?
46. What is meant by encapsulation ? Explain with an example
47. What is meant by inheritance ? Explain with an example
48. What is meant by polymorphism ? Explain with an example
49. Is multiple inheritance allowed in Java ? Why ?
50. What is meant by Java interpreter ?
51. What is meant by JVM ?
52. What is a compilation unit ?
53. What is meant by identifiers ?
54. What are the different types of modifiers ?
55. What are the access modifiers in Java ?
56. What are the primitive data types in Java ?
57. What is meant by a wrapper class ?
58. What is meant by static variable and static method ?
59. What is meant by Garbage collection ?
60. What is meant by abstract class
61. What is meant by final class, methods and variables ?
62. What is meant by interface ?
63. What is meant by a resource leak ?
64. What is the difference between interface and abstract class ?
65. What is the difference between public private, protected and static
66. What is meant by method overloading ?
67. What is meant by method overriding ?
68. What is singleton class ?
69. What is the difference between an array and a vector ?
70. What is meant by constructor ?
71. What is meant by casting ?
72. What is the difference between final, finally and finalize ?
73. What is meant by packages ?
74. What are all the packages ?
75. Name 2 calsses you have used ?
76. Name 2 classes that can store arbitrary number of objects ?
77. What is the difference between java.applet.* and java.applet.Applet ?
78. What is a default package ?
79. What is meant by a super class and how can you call a super class ?
80. What is anonymous class ?
81. Name interfaces without a method ?
82. What is the use of an interface ?
83. What is a serializable interface ?
84. How to prevent field from serialization ?
85. What is meant by exception ?
86. How can you avoid the runtime exception ?
87. What is the difference between throw and throws ?

Department of Computer Science and Engineering, maamallan institute of technology


Programming paradigm

88. What is the use of finally ?


89. Can multiple catch statements be used in exceptions ?
90. Is it possible to write a try within a try statement ?
91. What is the method to find if the object exited or not ?
92. What is meant by a Thread ?
93. What is meant by multi-threading ?
94. What is the 2 way of creating a thread ? Which is the best way and why?
95. What is the method to find if a thread is active or not ?
96. What are the thread-to-thread communcation ?
97. What is the difference between sleep and suspend ?
98. Can thread become a member of another thread ?
99. What is meant by deadlock ?
100. How can you avoid a deadlock ?
101. What are the three typs of priority ?
102. What is the use of synchronizations ?
103. Garbage c

Department of Computer Science and Engineering, maamallan institute of technology