Saturday, September 6, 2025
HomeLanguagesJava10 Most asked Questions from Java Programmers

10 Most asked Questions from Java Programmers

Hope you liked my previous post “Top 25 Interview Questions”. Here comes the next 10.

1) Design discussion on elevator.
Hint: Ask questions related to elevator functionality; come up with a High Level design and Low level design. Be prepared for scheduling questions related to elevator.

2) “n” points are given , find the number of quadruplets which form square.

3) Questions related to memory management in Java.

4) Mark and sweep algorithm and garbage collection in Java

5) Construct tree from Inorder and Preorder

6) Serialization in Java

7) How to ensure that instance is never garbage collected?
Hint: We can use singleton pattern. There’s a static reference to a singleton, so it won’t be eligible for garbage collection until the classloader is eligible for garbage collection.

8) Questions related to classloader, rt.jar?

9) Difference between String, StringBuffer and StringBuilder?

10) Why String is immutable in Java?
Note: Do discuss about security related issues in class loader.

Thanks to Lazyroar team for providing a nice platform. You guys are the best.

This article is contributed by Rishi Verma. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32270 POSTS0 COMMENTS
Milvus
82 POSTS0 COMMENTS
Nango Kala
6639 POSTS0 COMMENTS
Nicole Veronica
11803 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11869 POSTS0 COMMENTS
Shaida Kate Naidoo
6752 POSTS0 COMMENTS
Ted Musemwa
7029 POSTS0 COMMENTS
Thapelo Manthata
6704 POSTS0 COMMENTS
Umr Jansen
6721 POSTS0 COMMENTS