Filter interviews by
I applied via Naukri.com
I appeared for an interview before Jan 2024.
Mixed with Psedu COdes
It was Everything in this round
I applied via LinkedIn and was interviewed in Dec 2021. There were 4 interview rounds.
Constructor is a special method used to initialize objects in Java.
Constructor has the same name as the class.
It is called automatically when an object is created.
It can be used to set default values for object attributes.
There can be multiple constructors in a class with different parameters.
Example: public class Car { public Car(String color) { this.color = color; } }
Program to find top ten prime numbers and more
Create a function to check if a number is prime
Loop through numbers and add prime numbers to an array
Sort the array in descending order and return the top ten
Add options for user to input range of numbers and number of primes to find
Collection framework is a set of interfaces and classes that provide a way to store and manipulate groups of objects in Java.
Collection framework provides interfaces like List, Set, Queue, etc. for storing and manipulating groups of objects.
It also provides classes like ArrayList, HashSet, PriorityQueue, etc. that implement these interfaces.
Collection framework provides algorithms like sorting, searching, shuffling, et...
Interface in Java is a blueprint of a class that defines a set of methods without implementation.
Interfaces are used to achieve abstraction and multiple inheritance in Java.
All methods in an interface are public and abstract by default.
A class can implement multiple interfaces but can only extend one class.
Interfaces can also have default and static methods with implementation.
Example: interface Shape { void draw(); }
E...
Top trending discussions
I applied via Naukri.com and was interviewed in Sep 2020. There were 3 interview rounds.
The HashMap class is used to represent key-value pairs in Java.
HashMap is a part of the Java Collections Framework.
It allows null values and only one null key.
It provides constant-time performance for basic operations like get and put.
Example: HashMap<String, Integer> map = new HashMap<>();
Abstraction is the process of simplifying complex systems by focusing on essential details and hiding unnecessary complexities.
Abstraction allows us to create models or representations of real-world objects or systems in software.
It helps in managing complexity by breaking down a system into smaller, more manageable parts.
Abstraction provides a level of indirection, allowing changes to be made in one part of the system...
try-catch is used in Java to handle exceptions and prevent program crashes.
try-catch blocks are used to catch and handle exceptions that may occur during program execution.
It allows the program to gracefully handle errors and prevent the program from crashing.
The try block contains the code that may throw an exception, and the catch block handles the exception.
Multiple catch blocks can be used to handle different types...
The statement to use for selecting based on integer inputs is the 'switch' statement.
The 'switch' statement allows for multiple cases to be evaluated based on the value of an integer input.
Each case represents a possible value of the input, and the corresponding code block is executed if the value matches.
The 'switch' statement also provides a 'default' case which is executed if none of the cases match the input value.
...
I applied via Campus Placement and was interviewed in Oct 2020. There was 1 interview round.
I applied via Company Website and was interviewed before Dec 2019. There were 3 interview rounds.
I appeared for an interview before Jun 2016.
I appeared for an interview before Aug 2016.
For loop is used for iterating over a range of values while for each loop is used for iterating over elements of an array.
For loop is used when the number of iterations is known beforehand.
For each loop is used when the number of iterations is not known beforehand.
For loop can be used with any iterable object.
For each loop can only be used with arrays and other iterable objects.
For loop uses an index variable to access...
based on 3 interviews
Interview experience
based on 31 reviews
Rating in categories
8-11 Yrs
₹ 26-30 LPA
8-20 Yrs
Not Disclosed
Consultant
53
salaries
| ₹4.5 L/yr - ₹14.3 L/yr |
Senior Consultant
34
salaries
| ₹10.5 L/yr - ₹27 L/yr |
Associate Consultant
28
salaries
| ₹4 L/yr - ₹10.1 L/yr |
Senior Software Engineer
20
salaries
| ₹13 L/yr - ₹28 L/yr |
Software Engineer
14
salaries
| ₹5 L/yr - ₹15 L/yr |
HCL Infosystems
Accel Frontline
Northcorp Software
Diverse Lynx