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. |
What is dynamic method dispatch? |
| Answer» | |
| 2. |
What is the similarity between Dynamic Binding and linking? |
| Answer» | |
| 3. |
State the difference between creating String as new () and literal. |
| Answer» | |
| 4. |
What are some alternatives to inheritance? |
| Answer» | |
| 5. |
What are the steps in the JDBC connection? |
| Answer» | |
| 6. |
Mention the default values of all the elements of an array defined as an instance variable. |
| Answer» | |
| 7. |
How applets communicate with each other? |
| Answer» | |
| 8. |
Is there any difference between synchronized methods and synchronized statements? |
| Answer» | |
| 9. |
What is the difference between preemptive scheduling and time slicing? |
| Answer» | |
| 10. |
How are Observer and Observable used? |
| Answer» | |
| 11. |
Can a top level class be private or protected? |
| Answer» | |
| 12. |
What is the common usage of serialization? What exceptions occur during serialization? |
| Answer» | |
| 13. |
Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.ABCD compile? |
| Answer» | |
| 14. |
What do you understand by weak reference? |
| Answer» | |
| 15. |
What do you understand by Soft reference? |
| Answer» | |
| 16. |
Write a code to show a static variable |
| Answer» | |
| 17. |
What is the difference between a constructor and a method? |
| Answer» | |
| 18. |
Tell us something about set interface. |
| Answer» | |
| 19. |
What are the different collection views provided by Maps? |
| Answer» | |
| 20. |
When should you use ArrayList and when should you use LinkedList? |
| Answer» | |
| 21. |
What are the restrictions imposed on method overriding? |
| Answer» | |
| 22. |
What is final modifier? |
| Answer» | |
| 23. |
Explain numeric promotion? |
| Answer» | |
| 24. |
How do constructors use this() and super()? |
| Answer» | |
| 25. |
Tell us something about an Iterator. |
| Answer» | |
| 26. |
If a class is declared without any access modifiers, where can the class be accessed? |
| Answer» | |
| 27. |
What do you mean by order of precedence and associativity? |
| Answer» | |
| 28. |
What is Downcasting? |
| Answer» | |
| 29. |
Tell us something about different types of casting? |
| Answer» | |
| 30. |
Can we declare a static variable inside a method? |
| Answer» | |
| 31. |
What is the difference between final, finally and finalize()? |
| Answer» | |
| 32. |
If you do not want your class to be inherited by any other class. What would you do? |
| Answer» | |
| 33. |
Which package is imported by default? |
| Answer» | |
| 34. |
When is finally block NOT called? |
| Answer» | |
| 35. |
What is Covariant Return Type? |
| Answer» | |
| 36. |
Why Singleton pattern is better than creating Singleton class with static instance? |
| Answer» | |
| 37. |
How can you make sure that your singleton class will always return single instance in multi-threaded environment? |
| Answer» | |
| 38. |
What is Singleton Pattern? |
| Answer» | |
| 39. |
What is Re-factoring in Software? |
| Answer» | |
| 40. |
What is Hash Code collision? |
| Answer» | |
| 41. |
What is Contract between hashcode and equal method? |
| Answer» | |
| 42. |
How static variable work in java? |
| Answer» | |
| 43. |
What is the use of volatile in Java? |
| Answer» | |
| 44. |
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires? |
| Answer» | |
| 45. |
Static Synchronization vs. Instance Synchronization? |
| Answer» | |
| 46. |
What is the Difference between synchronized and synchronized block? |
| Answer» | |
| 47. |
What is the use of Join method? |
| Answer» | |
| 48. |
Which way a developer should use for creating thread, i.e. Sub classing Thread or implementing Runnable. |
| Answer» | |
| 49. |
What are the different ways of creating thread? |
| Answer» | |
| 50. |
Explain Java Thread Life cycle. |
| Answer» | |