0% found this document useful (0 votes)
15 views12 pages

Top 20 Java Interview Questions

Las 20 preguntas principales de la entrevista sobre Java

Uploaded by

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

Top 20 Java Interview Questions

Las 20 preguntas principales de la entrevista sobre Java

Uploaded by

Nicolas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

20 Java Interview

Questions You Must


Know

Shiva Prasad Gurram

Follow me for more content


Q-1
What is the difference between 'throw'
and 'throws' keyword?

am
https://www.linkedin.com/feed/update/u
rr
rn:li:activity:7041640644460613633
Gu
d
sa

Q-2
a
Pr

What is Covariant Return Type in Java?


a
iv

https://www.linkedin.com/feed/update/u
Sh

rn:li:activity:7042031073492418560/
Q-3
What is the difference between
@PathVariable and @RequestParam in

am
spring boot?

rr
https://www.linkedin.com/feed/update/urn:l
Gu
i:activity:7042406561125699584/
d
sa

Q-4
a
Pr

Given a list of numbers, square them


and filter the numbers which are
a

greater 100 and then find the average of


iv
Sh

them

https://www.linkedin.com/feed/update/u
rn:li:activity:7042758509695823872/
Q-5
Given a list of numbers, return the even and
odd numbers separately

am
https://www.linkedin.com/feed/update/urn:l
rr
i:activity:7043449579299647488/
Gu
d
sa

Q-6
a
Pr

What is the DIAMOND problem in Java?


a
iv

https://www.linkedin.com/feed/update/u
Sh

rn:li:activity:7044901808506376192/
Q-7
What is Functional interface and Consumer
in Java?

am
https://www.linkedin.com/feed/update/urn:l
rr
i:activity:7045394233112817664/
Gu
d
sa

Q-8
a
Pr

What are Predicate and Supplier


functional interfaces?
a
iv
Sh

https://www.linkedin.com/feed/update/u
rn:li:activity:7045988868231233536/
Q-9
SQL Question 1

am
https://www.linkedin.com/feed/update/urn:l
i:activity:7046410367735877632/
rr
Gu
d
sa

Q - 10
a
Pr

SQL Question 2
a
iv

https://www.linkedin.com/feed/update/u
Sh

rn:li:activity:7046707104480428032/
Q - 11
What are Fail-fast and Fail-safe iterators?

am
https://www.linkedin.com/feed/update/urn:l
i:activity:7047432864346357760
rr
Gu
d
sa

Q - 12
a
Pr

What is Try-with-resource in Java?


a
iv

https://www.linkedin.com/feed/update/u
Sh

rn:li:activity:7048521548038639616
Q - 13
Why String is immutable?

am
https://www.linkedin.com/feed/update/urn:l
i:activity:7050385183174193152
rr
Gu
d
sa

Q - 14
a
Pr

What is HashSet and how it works


internally?
a
iv
Sh

https://www.linkedin.com/feed/update/u
rn:li:activity:7051484920627490816
Q - 15
What are hashCode() and equals() in Java?

am
https://www.linkedin.com/feed/update/urn:l
i:activity:7052506467790172160
rr
Gu
d
sa

Q - 16
a
Pr

What is the difference between


Collection.synchronizedMap(map) and
a
iv

ConcurrentHashMap?
Sh

https://www.linkedin.com/feed/update/u
rn:li:activity:7056145880550166529
Q - 17
What are your code review comments on
below code snippet?

am
https://www.linkedin.com/feed/update/urn:l
rr
i:activity:7056869575811874818
Gu
d
sa

Q - 18
a
Pr

What does it mean by COUPLING in


software engineering?
a
iv
Sh

https://www.linkedin.com/feed/update/u
rn:li:activity:7058145789407064064
Q - 19
What is Daemon thread in Java?

am
https://www.linkedin.com/feed/update/urn:l
i:activity:7059078400891576321
rr
Gu
d
sa

Q - 20
a
Pr

Wat is Materialized view in database?


a
iv

https://www.linkedin.com/feed/update/u
Sh

rn:li:activity:7060568904091193344/
You can join my Telegram group if
you like my work and want to
participate in our ongoing

am
learning community.
rr
Gu
@dailydsawithspg
d
asa
Pr
a
iv

shivaprasad_gurram
Sh

You might also like