View Full Version : Core Java


Pages : [1] 2

  1. exception handeling
  2. sameer
  3. Either java is pure oop or partial oop?
  4. what is use of Finalizer method?
  5. When do we declare a method or class abstract?
  6. What is an Iterator interface?
  7. What is the relationship between the Canvas class and the Graphics class?
  8. Which class should you use to obtain design information about an object?
  9. What is the purpose of the finally clause of a try-catch-finally statement?
  10. What methods are used to get and set the text label displayed by a Button object?
  11. What is the difference between a field variable and a local variable?
  12. To what value is a variable of the String type automatically initialized?
  13. What Checkbox method allows you to tell if a Checkbox is checked?
  14. If a variable is declared as private, where may the variable be accessed?
  15. What classes of exceptions may be thrown by a throw statement?
  16. What are wrapped classes?
  17. What is the catch or declare rule for method declarations?
  18. What happens when a thread cannot acquire a lock on an object?
  19. To what value is a variable of the Boolean type automatically initialized?
  20. What modifiers may be used with an interface declaration?
  21. What is the purpose of garbage collection?
  22. What is the difference between the paint() and repaint() methods?
  23. What is the argument type of a program’s main() method?
  24. What's new with the stop (), suspend () and resume () methods in JDK 1.2?
  25. What happens when you add a double value to a String?
  26. Which arithmetic operations can result in the throwing of an ArithmeticException?
  27. What classes of exceptions may be caught by a catch clause?
  28. What is the difference between static and non-static variables?
  29. Name two subclasses of the TextComponent class.
  30. What is the difference between a Window and a Frame?
  31. What is the relationship between clipping and repainting?
  32. What happens when you invoke a thread's interrupt method while it is sleeping or wait
  33. Which package is always imported by default?
  34. What is the difference between the prefix and postfix forms of the ++ operator?
  35. What are E and PI?
  36. Which non-Unicode letter characters may be used as the first character of an identifi
  37. What event results from the clicking of a button?
  38. For which statements does it make sense to use a label?
  39. What is an abstract method?
  40. Which Container method is used to cause a container to be laid out and redisplayed?
  41. Name three Component subclasses that support painting.
  42. What is synchronization and why is it important?
  43. Which characters may be used as the second character of an identifier, but not as the
  44. What is a native method?
  45. Which class is the immediate superclass of the MenuComponent class?
  46. Can a double value be cast to a byte?
  47. What is an object's lock and which objects have locks?
  48. Does a class inherit the constructors of its superclass?
  49. What advantage do Java's layout managers provide over traditional windowing systems?
  50. When does the compiler supply a default constructor for a class?
  51. If an object is garbage collected, can it become reachable again?
  52. What is the ResourceBundle class?
  53. How are Observer and Observable used?
  54. What is the Collections API?
  55. What is the immediate superclass of the Dialog class?
  56. What is the difference between the Boolean ‘&’ operator and the ‘&&’ operator?
  57. What method is invoked to cause an object to begin executing as a separate thread?
  58. What is the difference between a static and a non-static inner class?
  59. Can an object be garbage collected while it is still reachable?
  60. How are the elements of a CardLayout organized?
  61. What is the difference between a while statement and a do statement?
  62. Which Math method is used to calculate the absolute value of a number?
  63. What is the difference between a Choice and a List?
  64. How is it possible for two String objects with identical values not to be equal under
  65. What is your platform's default character encoding?
  66. Can an abstract class be final?
  67. What are the problems faced by Java programmers who don't use layout managers?
  68. What restrictions are placed on method overriding?
  69. What is the difference between the File and RandomAccessFile classes?
  70. When is the finally clause of a try-catch-finally statement executed?
  71. What is the Collection interface?
  72. Is a class a subclass of itself?
  73. Name the eight primitive Java types.
  74. How is rounding performed under integer division?
  75. How are the elements of a BorderLayout organized?
  76. What value does read() return when it has reached the end of a file?
  77. Which Java operator is right associative?
  78. How many times may an object's finalize () method be invoked by the garbage collector
  79. What is the range of the short type?
  80. What is the range of the char type?
  81. Can an anonymous class be declared as implementing an interface and extending a class
  82. What is clipping?
  83. Does garbage collection guarantee that a program will not run out of memory?
  84. How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?
  85. What is the List interface?
  86. What method is used to specify a container's layout?
  87. Which containers use a border Layout as their default layout?
  88. Can a lock be acquired on a class?
  89. What state does a thread enter when it terminates its processing?
  90. What modifiers may be used with an inner class that is a member of an outer class?
  91. Which java.util classes and interfaces support event handling?
  92. What is the immediate superclass of the Applet class?
  93. What value does readLine() return when it has reached the end of a file?
  94. When a thread blocks on I/O, what state does it enter?
  95. When a thread is created and started, what is its initial state?
  96. In which package are most of the AWT events that support the event-delegation model d
  97. What is the GregorianCalendar class?
  98. What is the purpose of the wait(), notify(), and notifyAll() methods?
  99. What are the high-level thread states?
  100. Which class is extended by all other classes?
  101. What is the difference between the Reader/Writer class hierarchy and the InputStream/
  102. What is the SimpleTimeZone class?
  103. What is the purpose of the System class?
  104. What is the relationship between an event-listener interface and an event-adapter cla
  105. How are the elements of a GridBagLayout organized?
  106. What modifiers can be used with a local inner class?
  107. How does multithreading take place on a computer with a single CPU?
  108. If a method is declared as protected, where may the method is accessed?
  109. What restrictions are placed on method overloading?
  110. What is the return type of a program's main() method?
  111. Under what conditions is an object's finalize () method invoked by the garbage collec
  112. What are the legal operands of the instanceof operator?
  113. What is the purpose of the enableEvents() method?
  114. How are this and super used?
  115. What happens if an exception is not caught?
  116. What is numeric promotion?
  117. What is the purpose of a statement block?
  118. What is the List interface?
  119. What class allows you to read objects directly from a stream?
  120. What is the difference between the JDK 1.02 event model and the event-delegation mode
  121. How are the elements of a GridLayout organized?
  122. What is a void return type?
  123. What is a compilation unit?
  124. What is a layout manager?
  125. What happens if a try-catch-finally statement does not have a catch clause to handle
  126. Can try statements be tested?
  127. What modifiers may be used with a top-level class?
  128. What is the difference between an if statement and a switch statement?
  129. What is the difference between a Scrollbar and a ScrollPane?
  130. How can a dead thread be restarted?
  131. What interface must an object implement before it can be written to a stream as an ob
  132. Are true and false keywords?
  133. What an I/O filter?
  134. Why are the methods of the Math class static?
  135. What is the relationship between a method's throws clause and the exceptions that can
  136. What class of exceptions is generated by the Java run-time system?
  137. What is casting?
  138. How can the Checkbox class be used to create a radio button?
  139. Can an exception be rethrown?
  140. What is the highest-level event class of the event-delegation model?
  141. What restrictions are placed on the values of each case of a switch statement?
  142. Which TextComponent method is used to set a TextComponent to the read-only state?
  143. If a class is declared without any access modifiers, where may the class be accessed?
  144. Is the ternary operator written x : y ? z or x ? y : z ?
  145. When can an object reference be cast to an interface reference?
  146. What is the difference between the String and StringBuffer classes?
  147. How are Java source code files named?
  148. What is the advantage of the event-delegation model over the earlier event-inheritanc
  149. What must a class do to implement an interface?
  150. What is the purpose of finalization?
  151. What is a task's priority and how is it used in scheduling?
  152. Can a for statement loop indefinitely?
  153. What restrictions are placed on the location of a package statement within a source c
  154. Is sizeof a keyword?
  155. What is the difference between the >> and >>> operators?
  156. How does Java handle integer overflows and underflows?
  157. What is the preferred size of a component?
  158. Why do threads block on I/O?
  159. What is the difference between a public and a non-public class?
  160. What are three ways in which a thread can enter the waiting state?
  161. What interface is extended by AWT event listeners?
  162. What happens when you add a double value to a String?
  163. What is the Set interface?
  164. What state is a thread in when it is executing?
  165. How are this() and super() used with constructors?
  166. Name four Container classes.
  167. Which class is the immediate superclass of the Container class?
  168. What is the purpose of the File class?
  169. How can a GUI component handle its own events?
  170. Is "abc" a primitive value?
  171. Is &&= a valid Java operator?
  172. What is the Map interface?
  173. What is the difference between the Font and FontMetrics classes?
  174. What is the % operator?
  175. What is the Dictionary class?
  176. Can a Byte object be cast to a double value?
  177. How are commas used in the initialization and iteration parts of a for statement?
  178. Which containers may have a MenuBar?
  179. What is the difference between a break statement and a continue statement?
  180. What is the Locale class?
  181. What is the purpose of the Runtime class?
  182. Name three subclasses of the Component class.
  183. What invokes a thread's run() method?
  184. What is the immediate superclass of Menu?
  185. What class is the top of the AWT event hierarchy?
  186. What is the difference between a MenuItem and a CheckboxMenuItem?
  187. What are order of precedence and associativity, and how are they used?
  188. What is the difference between preemptive scheduling and time slicing?
  189. Can an object's finalize() method be invoked while it is reachable?
  190. What is the difference between yielding and sleeping?
  191. Which method of the Component class is used to set the position and size of a compone
  192. What is the Vector class?
  193. Which containers use a FlowLayout as their default layout?
  194. Is null a keyword?
  195. What is a transient variable?
  196. The Java source code can be created in
  197. What is an abstract method
  198. What is the Locale class
  199. What is the Dictionary class
  200. Is &&= a valid Java operator
  201. What is the Map interface
  202. What is casting
  203. What is the % operator
  204. What is the Set interface
  205. What an I/O filter
  206. What are E and PI
  207. Are true and false keywords
  208. What is clipping
  209. How are this and super used
  210. Name the eight primitive Java
  211. What is the range of the char
  212. Can a double value be cast to
  213. Is "abc" a primitive value
  214. What is a layout manager
  215. Is a class a subclass of
  216. What is a native method
  217. What are wrapped classes
  218. What is the purpose of the Runtime
  219. What is the SimpleTimeZone
  220. Name four Container
  221. What is a compilation unit
  222. Can an exception be rethrown
  223. Is sizeof a keyword
  224. What is the purpose of the System
  225. What is the Collection interface
  226. Which class is extended by all other
  227. What is the Vector class
  228. How can a dead thread be
  229. What invokes a thread's run()
  230. What is the immediate superclass of
  231. What is the purpose of finalization
  232. What is the purpose of the File
  233. Can an abstract class be
  234. What are the high-level thread
  235. What is the List interface
  236. What class is the top of the AWT event
  237. What is a void return type
  238. Can a Byte object be cast to a
  239. What is the ResourceBundle
  240. How can a GUI component handle its
  241. How are Java source code files
  242. Can an object's finalize() method be invoked
  243. What is numeric promotion
  244. What modifiers can be used with a
  245. What must a class do to implement
  246. Name three Component subclasses that
  247. Why are the methods of the Math
  248. What modifiers may be used with an interface
  249. What state is a thread in when it is
  250. Can try statements be