L&T Technology Services
EarlySail Software Interview Questions and Answers
Q1. WAP to collect all even no in list using stream API
WAP to collect all even no in list using stream API
Use stream() method to convert list to stream
Use filter() method to filter even numbers
Use collect() method to collect filtered numbers into a list
Q2. Explain what is oops concepts?
OOPs concepts are the fundamental principles of Object-Oriented Programming.
Encapsulation - binding data and methods together
Inheritance - reusing code and creating a hierarchy of classes
Polymorphism - ability of objects to take on many forms
Abstraction - hiding implementation details and showing only necessary information
Q3. Project challenges how resolved
Resolved project challenges through effective problem-solving techniques.
Identified the root cause of the challenges
Collaborated with team members to brainstorm solutions
Implemented appropriate strategies to overcome obstacles
Tested and validated the implemented solutions
Documented the resolution process for future reference
Q4. WAP Reverse a String ?
Reverse a given string using Java programming language.
Create a new empty string
Iterate through the original string from end to start
Append each character to the new string
Return the new string
Q5. All annotations in spring boot
Spring Boot has various annotations for different purposes.
SpringBootApplication - marks the main class of the application
RestController - marks a class as a RESTful controller
Autowired - marks a constructor, field, or setter method to be autowired by Spring
GetMapping/PostMapping/PutMapping/DeleteMapping - maps HTTP requests to methods
Component - marks a class as a Spring component
Service - marks a class as a service layer component
Repository - marks a class as a data access ...read more
Q6. Core string concept in depth
Core string concepts include immutability, string manipulation, and string comparison.
Strings in Java are immutable, meaning they cannot be changed once created.
String manipulation can be done using various methods like concatenation, substring, and replace.
String comparison can be done using equals() method for content comparison and == operator for reference comparison.
Top Java Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month