Saved Bookmarks
This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Can you write a Java class that could be used both as an applet as well as an application? |
| Answer» | |
| 2. |
How to add menushortcut to menu item? |
| Answer» | |
| 3. |
Explain the use of sublass in a Java program? |
| Answer» | |
| 4. |
What are use cases? |
| Answer» | |
| 5. |
What is Serialization and deserialization? |
| Answer» | |
| 6. |
What is the difference between static and non-static variables? |
| Answer» | |
| 7. |
Which class should you use to obtain design information about an object? |
| Answer» | |
| 8. |
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy? |
| Answer» | |
| 9. |
What is the purpose of File class? |
| Answer» | |
| 10. |
What is the difference between the paint() and repaint() methods? |
| Answer» | |
| 11. |
Which package has light weight components? |
| Answer» | |
| 12. |
What is the difference between a Window and a Frame? |
| Answer» | |
| 13. |
What are Wrapper classes? |
| Answer» | |
| 14. |
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? |
| Answer» | |
| 15. |
Why Vector class is used? |
| Answer» | |
| 16. |
What is the difference between yielding and sleeping? |
| Answer» | |
| 17. |
Does it matter in what order catch statements for FileNotFoundException and IOException are written? |
| Answer» | |
| 18. |
What invokes a thread's run() method? |
| Answer» | |
| 19. |
How does multi-threading take place on a computer with a single CPU? |
| Answer» | |
| 20. |
What are the ways in which a thread can enter the waiting state? |
| Answer» | |
| 21. |
What is NullPointerException? |
| Answer» | |
| 22. |
What is final class? |
| Answer» | |
| 23. |
Difference between Overloading and Overriding? |
| Answer» | |
| 24. |
Define composition? |
| Answer» | |
| 25. |
What is static block? |
| Answer» | |
| 26. |
Can a constructor be made final? |
| Answer» | |
| 27. |
What is the purpose of default constructor? |
| Answer» | |
| 28. |
What is the difference between object oriented programming language and object based programming language? |
| Answer» | |
| 29. |
Define JIT compiler? |
| Answer» | |
| 30. |
What is a WAR file? |
| Answer» | |
| 31. |
What is JAR file? |
| Answer» | |
| 32. |
Define JRE i.e. Java Runtime Environment? |
| Answer» | |
| 33. |
Explain the following line used under Java Program − |
| Answer» | |
| 34. |
Difference between throw and throws? |
| Answer» | |
| 35. |
What is Comparable Interface? |
| Answer» | |
| 36. |
Explain TreeSet? |
| Answer» | |
| 37. |
Explain Set Interface? |
| Answer» | |
| 38. |
Explain the usage of this() with constructors? |
| Answer» | |
| 39. |
Define immutable object? |
| Answer» | |
| 40. |
Explain garbage collection in Java? |
| Answer» | |
| 41. |
An applet extend which class? |
| Answer» | |
| 42. |
What is an applet? |
| Answer» | |
| 43. |
What are the two ways in which Thread can be created? |
| Answer» | |
| 44. |
What do you mean by Multithreaded program? |
| Answer» | |
| 45. |
Why Packages are used? |
| Answer» | |
| 46. |
Define Packages in Java? |
| Answer» | |
| 47. |
Give some features of Interface? |
| Answer» | |
| 48. |
What is an Interface? |
| Answer» | |
| 49. |
What is the primary benefit of Encapsulation? |
| Answer» | |
| 50. |
When Abstract methods are used? |
| Answer» | |