1
- #Java Interview Questions and Answers
1
+ # Java Interview Questions and Answers
2
2
3
- ##Expectations
3
+ ## Expectations
4
4
- Good Java Knowledge
5
5
6
- ##Things You Need to Know
6
+ ## Things You Need to Know
7
7
8
- ###Github Repository
8
+ ### Github Repository
9
9
https://github.com/in28minutes/JavaInterviewQuestionsAndAnswers
10
10
11
- ###PDF Guide
11
+ ### PDF Guide
12
12
Available in the resources for the course
13
13
14
- ###Installing Eclipse, Java and Maven
14
+ ### Installing Eclipse, Java and Maven
15
15
- PDF : https://github.com/in28minutes/SpringIn28Minutes/blob/master/InstallationGuide-JavaEclipseAndMaven_v2.pdf
16
16
- Video : https://www.youtube.com/watch?v=DLPjCZ5n_SM
17
17
18
18
19
- ##Interview Questions
19
+ ## Interview Questions
20
20
21
- ###Java Platform
21
+ ### Java Platform
22
22
- 1 . Why is Java so popular?
23
23
- 2 . What is platform independence?
24
24
- 3 . What is bytecode?
25
25
- 4 . Compare JDK vs JVM vs JRE
26
26
- 5 . What are the important differences between C++ and Java?
27
27
- 6 . What is the role for a classloader in Java?
28
28
29
- ###Wrapper Classes
29
+ ### Wrapper Classes
30
30
- 7 . What are Wrapper classes?
31
31
- 8 . Why do we need Wrapper classes in Java?
32
32
- 9 . What are the different ways of creating Wrapper class instances?
@@ -37,7 +37,7 @@ Available in the resources for the course
37
37
- 14 . What is implicit casting?
38
38
- 15 . What is explicit casting?
39
39
40
- ###Strings
40
+ ### Strings
41
41
- 16 . Are all String’s immutable?
42
42
- 17 . Where are String values stored in memory?
43
43
- 18 . Why should you be careful about String concatenation(+) operator in loops?
@@ -46,7 +46,7 @@ Available in the resources for the course
46
46
- 21 . What are differences between StringBuilder and StringBuffer?
47
47
- 22 . Can you give examples of different utility methods in String class?
48
48
49
- ###Object oriented programming basics
49
+ ### Object oriented programming basics
50
50
- 23 . What is a class?
51
51
- 24 . What is an object?
52
52
- 25 . What is state of an object?
@@ -80,7 +80,7 @@ Available in the resources for the course
80
80
- 53 . Can a constructor be called directly from a method?
81
81
- 54 . Is a super class constructor called even when there is no explicit call from a sub class constructor?
82
82
83
- ###Advanced object oriented concepts
83
+ ### Advanced object oriented concepts
84
84
- 55 . What is polymorphism?
85
85
- 56 . What is the use of instanceof operator in Java?
86
86
- 57 . What is coupling?
@@ -91,7 +91,7 @@ Available in the resources for the course
91
91
- 62 . Can you create an inner class inside a method?
92
92
- 63 . What is an anonymous class?
93
93
94
- ###Modifiers
94
+ ### Modifiers
95
95
- 64 . What is default class modifier?
96
96
- 65 . What is private access modifier?
97
97
- 66 . What is default or package access modifier?
@@ -108,7 +108,7 @@ Available in the resources for the course
108
108
- 77 . What happens when a variable is marked as volatile?
109
109
- 78 . What is a static variable?
110
110
111
- ###conditions & loops
111
+ ### conditions & loops
112
112
- 79 . Why should you always use blocks around if statement?
113
113
- 80 . Guess the output
114
114
- 81 . Guess the output
@@ -122,7 +122,7 @@ Available in the resources for the course
122
122
- 89 . What is the output of the program below?
123
123
- 90 . What is the output of the program below?
124
124
125
- ###Exception handling
125
+ ### Exception handling
126
126
- 91 . Why is exception handling important?
127
127
- 92 . What design pattern is used to implement exception handling features in most languages?
128
128
- 93 . What is the need for finally block?
@@ -142,7 +142,7 @@ Available in the resources for the course
142
142
- 107 . How does try with resources work?
143
143
- 108 . Can you explain a few exception handling best practices?
144
144
145
- ###Miscellaneous topics
145
+ ### Miscellaneous topics
146
146
- 109 . What are the default values in an array?
147
147
- 110 . How do you loop around an array using enhanced for loop?
148
148
- 111 . How do you print the content of an array?
@@ -169,7 +169,7 @@ Available in the resources for the course
169
169
- 132 . Are the constructors in an object invoked when it is de-serialized?
170
170
- 133 . Are the values of static variables stored when an object is serialized?
171
171
172
- ###Collections
172
+ ### Collections
173
173
- 134 . Why do we need collections in Java?
174
174
- 135 . What are the important interfaces in the collection hierarchy?
175
175
- 136 . What are the important methods that are declared in the collection interface?
@@ -204,7 +204,7 @@ Available in the resources for the course
204
204
- 165 . Can you give an example of implementation of navigableMap interface?
205
205
- 166 . What are the static methods present in the collections class?
206
206
207
- ###Advanced collections
207
+ ### Advanced collections
208
208
- 167 . What is the difference between synchronized and concurrent collections in Java?
209
209
- 168 . Explain about the new concurrent collections in Java?
210
210
- 169 . Explain about copyonwrite concurrent collections approach?
@@ -217,7 +217,7 @@ Available in the resources for the course
217
217
- 176 . What are atomic operations in Java?
218
218
- 177 . What is BlockingQueue in Java?
219
219
220
- ###Generics
220
+ ### Generics
221
221
- 178 . What are Generics?
222
222
- 179 . Why do we need Generics? Can you give an example of how Generics make a program more flexible?
223
223
- 180 . How do you declare a generic class?
@@ -226,7 +226,7 @@ Available in the resources for the course
226
226
- 183 . How can we restrict Generics to a super class of particular class?
227
227
- 184 . Can you give an example of a generic method?
228
228
229
- ###Multi threading
229
+ ### Multi threading
230
230
- 185 . What is the need for threads in Java?
231
231
- 186 . How do you create a thread?
232
232
- 187 . How do you create a thread by extending thread class?
@@ -251,7 +251,7 @@ Available in the resources for the course
251
251
- 206 . What is the use of notifyall method?
252
252
- 207 . Can you write a synchronized program with wait and notify methods?
253
253
254
- ###Functional Programming - Lamdba expressions and Streams
254
+ ### Functional Programming - Lamdba expressions and Streams
255
255
- 208 . What is functional programming?
256
256
- 209 . Can you give an example of functional programming?
257
257
- 210 . What is a stream?
@@ -267,19 +267,19 @@ Available in the resources for the course
267
267
- 219 . What is a consumer?
268
268
- 220 . Can you give examples of functional interfaces with multiple arguments?
269
269
270
- ### New Features
270
+ ### New Features
271
271
- 221 . What are the new features in Java 5?
272
272
- 222 . What are the new features in Java 6?
273
273
- 223 . What are the new features in Java 7?
274
274
- 224 . What are the new features in Java 8?
275
275
276
- ###What you can do next?
276
+ ### What you can do next?
277
277
- [ Design Patterns] (https://www.youtube.com/watch?v=f5Rzr5mVNbY )
278
278
- [ Maven] (https://www.youtube.com/watch?v=0CFWeVgzsqY )
279
279
- [ JSP Servlets] (https://www.youtube.com/watch?v=Vvnliarkw48 )
280
280
- [ Spring MVC] (https://www.youtube.com/watch?v=BjNhGaZDr0Y )
281
281
282
- ### Other Courses
282
+ ### Other Courses
283
283
284
284
- [ Most Watched Courses on YouTube - 30,000 Subscribers] ( https://www.youtube.com/watch?v=bNFoN956P2A&list=PLBBog2r6uMCQhZaQ9vUT5zJWXzz-f49k1 )
285
285
- [ 25 Videos and Articles for Beginners on Spring Boot] ( http://www.springboottutorial.com/spring-boot-tutorials-for-beginners )
@@ -294,7 +294,7 @@ Available in the resources for the course
294
294
* [ Java OOPS in 1 Hours] ( https://www.udemy.com/learn-object-oriented-programming-in-java/?couponCode=OOPS-GIT )
295
295
* [ C Puzzle for Interview] ( https://www.udemy.com/c-puzzles-for-beginners/?couponCode=CPUZZLES-GIT )
296
296
297
- ### Useful Links
297
+ ### Useful Links
298
298
- [ Our Website] ( http://www.in28minutes.com )
299
299
- [ Facebook] ( http://facebook.com/in28minutes )
300
300
- [ Twitter] ( http://twitter.com/in28minutes )
0 commit comments