

InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
51. |
What is the range of the short type? |
Answer» | |
52. |
Which method of the Component class is used to set the position and size of a component? |
Answer» | |
53. |
What is the difference between the >> and >>> operators? |
Answer» | |
54. |
Describe life cycle of thread? |
Answer» | |
55. |
What is type casting? |
Answer» | |
56. |
Where and how can you use a private constructor? |
Answer» | |
57. |
What is dot operator? |
Answer» | |
58. |
What is a Values Collection View ? |
Answer» | |
59. |
How do you decide when to use ArrayList and LinkedList? |
Answer» | |
60. |
Why deletion in LinkedList is fast than ArrayList? |
Answer» | |
61. |
What are the advantages of ArrayList over arrays? |
Answer» | |
62. |
Can constructor be inherited? |
Answer» | |
63. |
What is Dynamic Binding(late binding)? |
Answer» | |
64. |
What is runtime polymorphism or dynamic method dispatch? |
Answer» | |
65. |
What are synchronized methods and synchronized statements? |
Answer» | |
66. |
What is the Locale class? |
Answer» | |
67. |
When a thread is created and started, what is its initial state? |
Answer» | |
68. |
Is it necessary that each try block must be followed by a catch block? |
Answer» | |
69. |
What is the difference between error and an exception? |
Answer» | |
70. |
Why do we need wrapper classes? |
Answer» | |
71. |
Can a top level class be private or protected? |
Answer» | |
72. |
What is the default value of an object reference declared as an instance variable? |
Answer» | |
73. |
What will happen if static modifier is removed from the signature of the main method? |
Answer» | |
74. |
What is the difference between an Interface and an Abstract class? |
Answer» | |
75. |
What are ClassLoaders? |
Answer» | |
76. |
Can try statements be nested? |
Answer» | |
77. |
Variable of the boolean type is automatically initialized as? |
Answer» | |
78. |
Which arithmetic operations can result in the throwing of an ArithmeticException? |
Answer» | |
79. |
How can a dead thread be restarted? |
Answer» | |
80. |
Under what conditions is an object's finalize() method invoked by the garbage collector? |
Answer» | |
81. |
What class of exceptions are generated by the Java run-time system? |
Answer» | |
82. |
Which class is the immediate superclass of the Container class? |
Answer» | |
83. |
What is the relationship between clipping and repainting under AWT? |
Answer» | |
84. |
List primitive Java types? |
Answer» | |
85. |
What is the purpose of the System class? |
Answer» | |
86. |
If a variable is declared as private, where may the variable be accessed? |
Answer» | |
87. |
What is the difference between a break statement and a continue statement? |
Answer» | |
88. |
Which Java operator is right associative? |
Answer» | |
89. |
The immediate superclass of the Applet class? |
Answer» | |
90. |
Does garbage collection guarantee that a program will not run out of memory? |
Answer» | |
91. |
What is the Collections API? |
Answer» | |
92. |
What is synchronization? |
Answer» | |
93. |
What is a transient variable? |
Answer» | |
94. |
When ArithmeticException is thrown? |
Answer» | |
95. |
What's the difference between the methods sleep() and wait()? |
Answer» | |
96. |
Can you call one constructor from another if a class has multiple constructors? |
Answer» | |
97. |
When is the ArrayStoreException thrown? |
Answer» | |
98. |
Is there any limitation of using Inheritance? |
Answer» | |
99. |
What's the difference between constructors and other methods? |
Answer» | |
100. |
What is the difference between Swing and AWT components? |
Answer» | |