Synechron Java Interview Questions
Carvia Tech | April 27, 2019 | 1 min read | 185 views
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)
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?
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?
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
- What is difference between Component, Repository, Service, Controller & RestController
- Send Gupshup SMS using Java API
- Generate UPI QR Code in Java
Find more on this topic:
Spring Framework - MVC, Dependency Injection, Spring Hibernate, Spring Data JPA, Spring Boot and Spring Cloud for Microservices Architecture.
Last updated 1 week ago
Subscribe to Interview Questions
Recommended books for interview preparation:
- Elasticsearch with Spring Boot + Spring Data
- Download a file using Spring RestTemplate
- Slack Webhook Message from Spring Boot
- Spring Webclient multipart file upload
- Dialoglfow fulfillment with Spring Boot
- Spring Boot WebClient Basic Authentication
- SendGrid Attachments with Spring Boot
- Sendgrid Dynamic Templates with Spring Boot
- Redis rate limiter in Spring Boot
- Custom TTL for Spring data Redis Cache