Synechron Java Interview Questions
Upasana | April 27, 2019 | 1 min read | 185 views
General Questoins
-
What is Serialization?
-
What is shallow and deep cloning?
-
How to make a Java class immutable? Let’s say that the class returns a Date and List Object, what changes now will be required to make this class immutable? Are there any tools/plugins that can help you in getting errors/warning related to immutability issues?
-
What is a Singleton? where did you use it lastly? What are pitfalls associated with it?
-
Write down a multi-threading code that will print even and odd numbers in sequence? explain how do you coordinate among these two threads?
-
What is static and dynamic polymorphism?
-
What is Selection Sort Algorithm?
-
Generics difference between E and T?
-
Explain different Memory Types in Java? (Heap, Stack and Method Area)
Collections
-
What is difference between HashSet and TreeSet? When should I choose one over the other?
-
What is difference between Hashmap and Treemap?
-
What is difference between Comparator and Comparable?
Design Problems
-
Parking Lot Vehicle Problem.
Database Related Question
-
There is a backup table B that has almost replica of Table A, How will you find the unique data and remove redundant data?
-
SQL level joins?
-
Difference between ON and WHERE clause in SQL table join?
Spring
-
Explain different Spring session scopes? (singleton, prototype, etc)
-
How will you Inject a Prototype Bean into Singleton Scoped Bean?
Top articles in this category:
- How does Session handling works in Servlet environment
- Feign Client Logging and connection timeout
- Feign RequestInterceptor in Spring Boot
- Java AWS Lambda using Spring Cloud Function
- Send Gupshup SMS using Java API
- What is difference between Component, Repository, Service, Controller & RestController
- Generate UPI QR Code in Java