Filter interviews by
Oops, Java program output, collection based on above topics questions will be
Abstract class can have abstract and non-abstract methods, interface can only have abstract methods.
Abstract class can have constructors, interfaces cannot.
Abstract class can have instance variables, interfaces cannot.
Abstract class can have defined methods, interfaces cannot.
I was interviewed in Nov 2024.
A program to check if a given number is prime or not.
Create a function to check if a number is prime by iterating from 2 to the square root of the number.
If the number is divisible by any number other than 1 and itself, it is not prime.
Handle edge cases like 0, 1, and negative numbers separately.
To find the 3rd highest salary employee, we can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.
Use a SQL query to select distinct salaries in descending order
Use 'LIMIT 1 OFFSET 2' to get the 3rd highest salary
Join this result with the employee table to get the employee details
I applied via Naukri.com and was interviewed in Oct 2024. There was 1 interview round.
Method reference is a shorthand syntax for lambda expressions in Java.
Method reference is more concise and readable than lambda expressions.
Method reference can be used to refer to static methods, instance methods, and constructors.
Lambda expressions are more flexible and can be used in situations where method reference is not applicable.
I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.
I applied via Approached by Company and was interviewed in Mar 2024. There were 3 interview rounds.
Find repeat elements in an array of strings
Iterate through the array and store each element in a HashMap with its count
Check if the count of any element is greater than 1, then it is a repeat element
Return the repeat elements found in the array
Build a basic CRUD REST API endpoint
Create a REST API endpoint for each CRUD operation (Create, Read, Update, Delete)
Use HTTP methods like POST, GET, PUT, DELETE to perform CRUD operations
Implement data validation and error handling for each operation
Utilize a framework like Spring Boot or Express.js to simplify API development
To find the third highest salary in a SQL table, you can use the 'SELECT TOP 1' statement with 'ORDER BY salary DESC OFFSET 2 ROWS FETCH NEXT 1 ROWS ONLY'.
Use the 'SELECT TOP 1' statement to retrieve only one record
Order the records by salary in descending order using 'ORDER BY salary DESC'
Skip the first two highest salaries using 'OFFSET 2 ROWS'
Fetch the next record after skipping the first two using 'FETCH NEXT 1 ROW
I applied via Naukri.com and was interviewed in Mar 2024. There was 1 interview round.
wait, notify, and notifyAll are methods used for inter-thread communication in Java.
wait() method causes the current thread to wait until another thread invokes the notify() or notifyAll() method for this object.
notify() method wakes up a single thread that is waiting on this object's monitor.
notifyAll() method wakes up all threads that are waiting on this object's monitor.
Spring is a framework for building Java applications, while Spring Boot is a tool that simplifies the setup and configuration of Spring applications.
Spring is a comprehensive framework for building Java applications, providing support for various modules like Spring MVC, Spring Security, and Spring Data.
Spring Boot is an opinionated tool that simplifies the setup and configuration of Spring applications by providing de...
Lambda expression is a concise way to represent an anonymous function in Java.
Lambda expressions are used to provide implementation of functional interfaces.
They enable you to treat functionality as a method argument, or code as data.
Syntax: (parameters) -> expression or (parameters) -> { statements; }
Example: (int a, int b) -> a + b
I applied via Recruitment Consulltant and was interviewed in Feb 2024. There were 3 interview rounds.
Online assessment MCQs with 3 questions where we nmed to find bug in existing logic
Java 8 introduced new features like lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow you to write code in a more concise and readable way.
Functional interfaces provide a single abstract method for functional programming.
Streams enable processing sequences of elements in a functional style.
Default methods allow interfaces to have method implementations.
Example: Lambda expr...
I applied via Job Portal and was interviewed in Jan 2024. There was 1 interview round.
Object-oriented programming concepts in Java
Encapsulation: bundling data and methods together
Inheritance: creating new classes from existing ones
Polymorphism: using a single interface to represent multiple types
Abstraction: hiding implementation details
Encapsulation: grouping related data and methods into a class
Association: relationship between two or more objects
Composition: creating complex objects by combining simp...
Software Engineer
19
salaries
| ₹3.2 L/yr - ₹9 L/yr |
Softwaretest Engineer
13
salaries
| ₹4.6 L/yr - ₹8 L/yr |
Devops Engineer
11
salaries
| ₹3.8 L/yr - ₹11.1 L/yr |
Software Developer
7
salaries
| ₹3.8 L/yr - ₹7 L/yr |
Power BI Developer
6
salaries
| ₹4.5 L/yr - ₹6.5 L/yr |
Infosys
TCS
Wipro
HCLTech