

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.
1. |
What will be the default values of all the elements of an array defined as an instance variable? |
Answer» | |
2. |
How does a try statement determine which catch clause should be used to handle an exception? |
Answer» | |
3. |
Can a double value be cast to a byte? |
Answer» | |
4. |
What is constructor chaining and how is it achieved in Java? |
Answer» | |
5. |
What restrictions are placed on method overriding? |
Answer» | |
6. |
What is the difference between inner class and nested class? |
Answer» | |
7. |
If a method is declared as protected, where may the method be accessed? |
Answer» | |
8. |
What are order of precedence and associativity and how are they used? |
Answer» | |
9. |
What is Downcasting? |
Answer» | |
10. |
What is an object's lock and which object's have locks? |
Answer» | |
11. |
Which object oriented Concept is achieved by using overloading and overriding? |
Answer» | |
12. |
Can an Interface extend another Interface? |
Answer» | |
13. |
What are the restriction imposed on a static method or a static block of code? |
Answer» | |
14. |
Can a class declared as private be accessed outside it's package? |
Answer» | |
15. |
What is difference between Path and Classpath? |
Answer» | |
16. |
What is an enumeration? |
Answer» | |
17. |
Can a vector contain heterogenous objects? |
Answer» | |
18. |
What is the difference between the size and capacity of a Vector? |
Answer» | |
19. |
What is the SimpleTimeZone class? |
Answer» | |
20. |
What is the GregorianCalendar class? |
Answer» | |
21. |
Which method must be implemented by all threads? |
Answer» | |
22. |
Which method is used to create the daemon thread? |
Answer» | |
23. |
What is daemon thread? |
Answer» | |
24. |
If System.exit (0); is written at the end of the try block, will the finally block still execute? |
Answer» | |
25. |
What is Externalizable interface? |
Answer» | |
26. |
What is Nested top-level class? |
Answer» | |
27. |
Is there any need to import java.lang package? |
Answer» | |
28. |
What environment variables do I need to set on my machine in order to be able to run Java programs? |
Answer» | |
29. |
Why Generics are used in Java? |
Answer» | |
30. |
Which class represents the socket that both the client and server use to communicate with each other? |
Answer» | |
31. |
Which class is used by server applications to obtain a port and listen for client requests? |
Answer» | |
32. |
Disadvantages of Java Sockets? |
Answer» | |
33. |
Advantages of Java Sockets? |
Answer» | |
34. |
What is a Socket? |
Answer» | |
35. |
Define Network Programming? |
Answer» | |
36. |
Define canvas? |
Answer» | |
37. |
Define code as an attribute of Applet? |
Answer» | |
38. |
Which method is called by Applet class to load an image? |
Answer» | |
39. |
Why is the role of init() method under applets? |
Answer» | |
40. |
Life cycle of an applet includes which steps? |
Answer» | |
41. |
Explain main thread under Thread class execution? |
Answer» | |
42. |
What is currentThread()? |
Answer» | |
43. |
Explain isAlive() method under Thread class? |
Answer» | |
44. |
Explain suspend() method under Thread class> |
Answer» | |
45. |
Where import statement is used in a Java program? |
Answer» | |
46. |
Break statement can be used as labels in Java? |
Answer» | |
47. |
Which number is denoted by leading 0x or 0X in java? |
Answer» | |
48. |
Which number is denoted by leading zero in java? |
Answer» | |
49. |
Does Java allow Default Arguments? |
Answer» | |
50. |
What is the immediate superclass of Menu? |
Answer» | |