Synechron Java Interview Questions

Carvia Tech | April 27, 2019 | 1 min read | 198 views

General Questoins

  1. What is Serialization?

  2. What is shallow and deep cloning?

  3. 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?

  4. What is a Singleton? where did you use it lastly? What are pitfalls associated with it?

  5. Write down a multi-threading code that will print even and odd numbers in sequence? explain how do you coordinate among these two threads?

  6. What is static and dynamic polymorphism?

  7. What is Selection Sort Algorithm?

  8. Generics difference between E and T?

  9. Explain different Memory Types in Java? (Heap, Stack and Method Area)


  1. What is difference between HashSet and TreeSet? When should I choose one over the other?

  2. What is difference between Hashmap and Treemap?

  3. What is difference between Comparator and Comparable?

Design Problems

  1. Parking Lot Vehicle Problem.

  1. There is a backup table B that has almost replica of Table A, How will you find the unique data and remove redundant data?

  2. SQL level joins?

  3. Difference between ON and WHERE clause in SQL table join?


  1. Explain different Spring session scopes? (singleton, prototype, etc)

  2. How will you Inject a Prototype Bean into Singleton Scoped Bean?

Top articles in this category:
  1. What are different Bean Scopes in Spring?
  2. Invoking AWS Lambda from a Java Client
  3. Creating AWS Lambda in Java using Spring Cloud Function
  4. Invoke AWS Lambda from a Kotlin Client
  5. What is new in Spring Boot 2
  6. Running Spring Boot app as a service in unix
  7. How to prevent duplicate form submission in Spring MVC

Find more on this topic:
Spring Framework image
Spring Framework

Spring Framework - MVC, Dependency Injection, Spring Hibernate, Spring Data JPA, Spring Boot and Spring Cloud for Microservices Architecture.

Last updated 1 week ago

Recommended books for interview preparation:

This website uses cookies to ensure you get the best experience on our website. more info