

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.
101. |
Can you write a Java class that could be used both as an applet as well as an application? |
Answer» | |
102. |
How to add menushortcut to menu item? |
Answer» | |
103. |
Explain the use of sublass in a Java program? |
Answer» | |
104. |
What are use cases? |
Answer» | |
105. |
What is Serialization and deserialization? |
Answer» | |
106. |
What is the difference between static and non-static variables? |
Answer» | |
107. |
Which class should you use to obtain design information about an object? |
Answer» | |
108. |
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy? |
Answer» | |
109. |
What is the purpose of File class? |
Answer» | |
110. |
What is the difference between the paint() and repaint() methods? |
Answer» | |
111. |
Which package has light weight components? |
Answer» | |
112. |
What is the difference between a Window and a Frame? |
Answer» | |
113. |
What are Wrapper classes? |
Answer» | |
114. |
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? |
Answer» | |
115. |
Why Vector class is used? |
Answer» | |
116. |
What is the difference between yielding and sleeping? |
Answer» | |
117. |
Does it matter in what order catch statements for FileNotFoundException and IOException are written? |
Answer» | |
118. |
What invokes a thread's run() method? |
Answer» | |
119. |
How does multi-threading take place on a computer with a single CPU? |
Answer» | |
120. |
What are the ways in which a thread can enter the waiting state? |
Answer» | |
121. |
What is NullPointerException? |
Answer» | |
122. |
What is final class? |
Answer» | |
123. |
Difference between Overloading and Overriding? |
Answer» | |
124. |
Define composition? |
Answer» | |
125. |
What is static block? |
Answer» | |
126. |
Can a constructor be made final? |
Answer» | |
127. |
What is the purpose of default constructor? |
Answer» | |
128. |
What is the difference between object oriented programming language and object based programming language? |
Answer» | |
129. |
Define JIT compiler? |
Answer» | |
130. |
What is a WAR file? |
Answer» | |
131. |
What is JAR file? |
Answer» | |
132. |
Define JRE i.e. Java Runtime Environment? |
Answer» | |
133. |
Explain the following line used under Java Program − |
Answer» | |
134. |
Difference between throw and throws? |
Answer» | |
135. |
What is Comparable Interface? |
Answer» | |
136. |
Explain TreeSet? |
Answer» | |
137. |
Explain Set Interface? |
Answer» | |
138. |
Explain the usage of this() with constructors? |
Answer» | |
139. |
Define immutable object? |
Answer» | |
140. |
Explain garbage collection in Java? |
Answer» | |
141. |
An applet extend which class? |
Answer» | |
142. |
What is an applet? |
Answer» | |
143. |
What are the two ways in which Thread can be created? |
Answer» | |
144. |
What do you mean by Multithreaded program? |
Answer» | |
145. |
Why Packages are used? |
Answer» | |
146. |
Define Packages in Java? |
Answer» | |
147. |
Give some features of Interface? |
Answer» | |
148. |
What is an Interface? |
Answer» | |
149. |
What is the primary benefit of Encapsulation? |
Answer» | |
150. |
When Abstract methods are used? |
Answer» | |