[Go to site: main page, start]

0% found this document useful (0 votes)
5 views4 pages

Java OOP Questions and Concepts Guide

Uploaded by

vichuvishwa004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Java OOP Questions and Concepts Guide

Uploaded by

vichuvishwa004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Java Basics and OOPS - Questions Only

1. What is Java?
2. Difference between JDK, JRE, and JVM
3. What are the main features of Java?
4. What is Platform Independent?
5. What is Open Source?
6. What tools are used to execute Java programs?
7. What is OOPS?
8. What are the coding standards in Java?
9. What is a Class, Method, and Object?
10. What is Encapsulation?
11. What are the Data Types in Java?
12. What is a Wrapper Class?
13. What is the use of the Scanner Class?
14. What is Inheritance?
15. What are the ways to access another class’s methods/data?
16. What is Polymorphism?
17. What is Method Overloading & Overriding?
18. What are the types of Inheritance?
19. Why is multiple inheritance not supported in Java?
20. Difference between Multiple and Multilevel Inheritance
21. What is an Access Specifier?
22. Difference between Public vs Protected
23. What are the access specifiers in Java?
24. What is Abstraction?
25. What are the types of Abstraction?
26. Can we create objects for an abstract class?
27. What is an Interface?
28. Difference between Abstract Class vs Interface
29. What is a String?
30. What are the important String methods?
31. Difference between Immutable vs Mutable Strings
32. Difference between Literal and Non-Literal String
33. Difference between StringBuffer vs StringBuilder
34. What is a Constructor?
35. What are the types of constructors?
36. Do constructors have a return type?
37. Syntax of Constructor
38. What are the rules for the Constructor?
39. Why no return type for the Constructor?
40. Can constructors be private?
41. When is the default constructor called?
42. What is Constructor Chaining?
43. Difference between this() vs super()
44. What is an Array?
45. What are the advantages of an Array?
46. What are the disadvantages of an Array?
47. What is the syntax of Array initialisation?
48. Can the array size change after initialisation?

49. What are Control Statements in Java?


50. Difference between break and continue
51. What are the types of loops in Java?
52. Difference between if and if-else
53. Difference between Heap and Stack Memory
54. What is the Default Package in Java?
55. What are Access Modifiers in Java?

Different between questions

56. Difference between Normal Loop and Enhanced Loop


57. Difference between Method Overloading and Method Overriding?
58. Difference between Multiple Inheritance and Multilevel Inheritance?
59. Difference between Abstract Class and Inheritance?
60. Difference between List and ArrayList?
61. Difference between ArrayList and Vector?
62. Difference between HashMap and HashTable?
63. Difference between List and Set?
64. Difference between List and Map?
65. Difference between Set and Map?
66. Difference between StringBuilder and StringBuffer?
67. Difference between Mutable String and Immutable String?
68. Difference between Throw and Throws?
69. What is the Super Class of Java?
70. Difference between this() and super() keyword?
71. Difference between Collection and Collections?
72. Difference between Iterator and ListIterator?
73. Describe the Random class in Collection?
74. What is Queue in Collection?
75. What is Final, Finally, and Finalize?
76. Difference between Static and Non-static?
77. Difference between For Loop and Enhanced For Loop (value loop)?
78. What are the types of variables in Java?
79. What are Control Statements in Java?
80. Difference between break and continue
81. What are the types of loops in Java?
82. Difference between if and if-else
83. Difference between Heap and Stack Memory
84. What is the Default Package in Java?
85. What are Access Modifiers in Java?
86. Difference between Normal Loop and Enhanced Loop

Pending topics questions

Non-access Modifier / Types of Variables.

87. Where are variables stored in the JVM?


88. What is the static keyword?
89. Can static methods be overloaded?
90. Can static methods be overridden?
91. Can static members be accessed without an object?
92. What is the final keyword?
93. Difference between final and finally
94. Where are variables stored in the JVM?
95. What are Non-Access Modifiers in Java?
96. What is the abstract keyword?
97. What is the static keyword?
98. Can we override static methods?
99. How to call a class-level static method?
100. Why don’t static methods require objects?
101. What is the final keyword?
102. What is a Local Variable?
103. What is an Instance Variable?
104. What is a Static Variable?
105. What is a Static Final Variable?

Collections

106. What is a Collection?


107. Difference between ArrayList and Vector
108. Difference between ArrayList and LinkedList
109. What are the main Collection interfaces?
110. Examples of Collections
111. Difference between List and Set
112. Difference between HashSet, TreeSet, and LinkedHashSet
113. What is a Map?
114. Difference between HashMap and Hashtable
115. Difference between Set and Map
116. What are the methods in List that are not in Set?
117. How is null handled in different Map types?
118. How to iterate a Map?
119. How to get only keys or values from a Map?

You might also like