Synechron Java Interview Questions

Carvia Tech | April 27, 2019 | 1 min read | 185 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. Generate UPI QR Code in Java
  2. Send Gupshup SMS using Java API
  3. What are different Bean Scopes in Spring?
  4. SendGrid emails in Spring Boot
  5. Invoking AWS Lambda from a Java Client
  6. AWS SDK 2.0 - S3 File upload & download in Java
  7. Java AWS Lambda using Spring Cloud Function

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