0% found this document useful (0 votes)
2 views

Java viva questions

The document is a comprehensive list of important viva and interview questions related to Object-Oriented Programming (OOPS) in Java, covering fundamental concepts, syntax, and various features of the language. It includes definitions and explanations of key terms such as classes, objects, inheritance, polymorphism, and exception handling, among others. The questions are designed to assess knowledge of Java programming and its principles, making it a useful resource for students and professionals preparing for interviews.

Uploaded by

Sree Latha
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Java viva questions

The document is a comprehensive list of important viva and interview questions related to Object-Oriented Programming (OOPS) in Java, covering fundamental concepts, syntax, and various features of the language. It includes definitions and explanations of key terms such as classes, objects, inheritance, polymorphism, and exception handling, among others. The questions are designed to assess knowledge of Java programming and its principles, making it a useful resource for students and professionals preparing for interviews.

Uploaded by

Sree Latha
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

OOPS through Java – important viva and interview questions

18-01-2024
Faculty: Farheen Sultana
1. Define java?
2. Define OOPS?
3. What is the principle of OOPS?
4. Define JVM?
5. Define just in time?
6. Define classes with syntax?
7. Define objects with syntax?
8. Who developed java and in which year?
9. Define JDk?
10. Define JRE?
11. Define abstraction?
12. Define encapculation?
13. Define polymorphism?
14. Define inheritance and its types?
15. What is the main method in java programming language?
16. What is System.out.println()?
17. Why java is platform independent language?
18. What is runtime polymorphism?
19. What is compile time polymorphism?
20. Is java a case sensitive language? Yes or No.
21. What is interpreter?
22. What is compiler?
23. What is a program?
24. Define datatypes and its types?
25. Difference between c, c++ and java?
26. What are the features of java?
27. Define robust in java?
28. Define multi threading in java?
29. Define architecture neutral in java?
30. Why java is portable?
31. Define variables in java?
32. What is local variable in java with syntax?
33. What is static variable in java with syntax?
34. What is instance variable in java with syntax?
35. Define arrays in java?
36. Define one dimensional arrays in java with syntax?
37. Define multi dimensional arrays in java with syntax?
38. Define Scanner class in java with syntax?
39. What are the Scanner class methods?
40. Define operators in java?
41. Define (symbols) in logical operator in java?
42. Define (symbols) in assignment operator in java?
43. Define (symbols) in unary operator in java?
OOPS through Java – important viva and interview questions
18-01-2024
Faculty: Farheen Sultana
44. Define (symbols) in relational operator in java?
45. Define (symbols) in terinary operator in java?
46. Define access control modifiers?
47. Define private access modifier?
48. Define protected access modifiers?
49. Define public access modifiers?
50. Define default access modifiers?
51. Define constructors in java?
52. Define parameterized construcrtor in java?
53. Define default constructor in java?
54. Define copy constructor in java?
55. Define methods in java?
56. Define constructor overloading in java with syntax?
57. Define method overloading in java with syntax?
58. Define non-static method in java?
59. Define this keyword and its types?
60. Define java inner classes?
61. Define inner class?
62. Define anonymous inner class with syntax?
63. Define method local inner class with syntax?
64. Define garbage collection in java?
65. What is the use of gc() method?
66. What is the finalize() in java?
67. Define recursion in java with syntax?
68. Define String in java and its types?
69. Define heap memory in java?
70. Why strings are immutable in java?
71. Define string methods in java?
72. Define implicit type casting?
73. Define explicit type casting?
74. Define type conversion in java?
75. Define statements in java?
76. Define control statements in java?
77. Write the syntax of if else statement?
78. Write the syntax of else if statement?
79. Write the syntax of while loop and do while loop?
80. Write the syntax of switch statement?
81. Write the syntax of for each loop?
82. Write the syntax of continue and break?
83. What are the types of control statements?
84. What are the types of parameters?
85. What is the function of parameter passing in java?
86. Define formal parameters and actual parameters in java?
OOPS through Java – important viva and interview questions
18-01-2024
Faculty: Farheen Sultana
87. Define call by value and call by reference?
88. Define binding and its types?
89. Define static binding and dynamic binding in java?
90. Define method overriding in java?
91. Define exception in java?
92. What are the rules of method overriding?
93. Define expression in java?
94. Define packages?
95. Define built in packages?
96. Define user defined packages?
97. Define multiple inheritance in java?
98. Define hierarchical inheritance in java?
99. Define multi level in java?
100. Why java does not support multiple inheritance?
101. Define type coupling in java?
102. Define extends keyword in java?
103. Define Is A relationship in java?
104. Define super keyword in java?
105. Define abstract method with syntax?
106. Define abstract keyword?
107. Define abstract class with syntax?
108. By using super keyword how to invoke super class method?
109. By using super keyword how to invoke super class variable?
110. By using super keyword how to invoke super class constructor?
111. Define final keyword?
112. By using final keyword how to invoke final method?
113. Define interface with syntax?
114. How to access interface variable?
115. Define file?
116. What is file handling?
117. Define java.io package?
118. Define character stream?
119. Define byte stream?
120. Define Strings?
121. What are the exception handling techniques?
122. Define try and catch?
123. Define exception handling?
124. Define throws and throw keywords?
125. Define finally keyword?
126. Define random access file?
127. Define unboxing?
128. Define autoboxing?
129. What is adhoc polymorphism?
OOPS through Java – important viva and interview questions
18-01-2024
Faculty: Farheen Sultana
130. What is array list?
131. What is MVC architecture?
132. What is iterator?
133. What is daemon threads?
134. Define states of thread life cycle?
135. Define multi tasking?
136. What is synchronizing threads?
137. What is collection?
138. Define CLASSPATH?
139. What is a path?
140. Define object class?
141. What are the methods of object class?
142. What are the parameters used in Generics?
143. Define event?
144. Define event handling?
145. Define event source?
146. Define event listener interfaces?
147. Define event class?
148. What are the various interfaces used in collection framework?
149. Difference between array list and linked list?
150. Define Label in java?
151. Define hash set?
152. Define tree set?
153. Difference between hash set and hash map?
154. Difference between array and array list?
155. What is collection framework?
156. Define tree map?
157. Define hash table?
158. Define bubble sort?
159. Define quick sort?
160. Define applet?
161. Define AWT?
162. Define adapter class in java?
163. Define Button in java?
164. Define checkbox and checkbox group in java?
165. Define text component in java?
166. Define container in java?
167. Define choice in java?
168. Define Graphics class in java?
169. What is AWT control?
170. Define swing?
171. Define JButton in java?
172. Define radio buttons?
OOPS through Java – important viva and interview questions
18-01-2024
Faculty: Farheen Sultana
173. Define JFrame in java?
174. What are the states of life cycle of an applet?
175. What is process in java?
176. What is thread?
177. What is thread scheduling in java?
178. Define scroll pane?
179. Define canvas in java?
180. Define scroll bars in java?
181. What are the methods of mouse listener interface?
182. What are the methods of key listener interface?
183. What are the event sources?
184. Define String buffer?
185. What is a frame?
186. What is JPanel?
187. Define flow layout?
188. Define grid layout?
189. Define border layout?
190. Define card layout?
191. Define JTable in java?
192. Define JDBC?
193. Define tabbed pane?
194. Define dialog?
195. Difference between JPop up menu and JMenu?
196. Define grid back layout?
197. Define menu bar?
198. Define Panel?
199. What are the methods used in component event class?
200. What is significance of bit set?

You might also like