Filter interviews by
Checked exceptions are checked at compile-time while unchecked exceptions are not.
Checked exceptions are those that are checked at compile-time and must be handled by the programmer using try-catch or throws clause.
Unchecked exceptions are those that are not checked at compile-time and can occur at runtime. They do not need to be handled explicitly.
Examples of checked exceptions include IOException, ClassNotFoundE...
ArrayList is not synchronized while Vector is synchronized.
ArrayList is faster than Vector as it is not synchronized.
Vector is thread-safe while ArrayList is not.
Vector is a legacy class while ArrayList is not.
Vector can grow by a specified amount while ArrayList can grow by half of its size.
Example: ArrayList<Integer> list = new ArrayList<>(); Vector<Integer> vector = new Vector<>();
Exampl...
A functional interface is an interface that contains only one abstract method.
Functional interfaces are used in Java 8's lambda expressions and method references.
They can also have default methods and static methods.
Examples of functional interfaces include Runnable, Comparator, and Callable.
Abstract class can have implementation while interface cannot. A class can implement multiple interfaces but only extend one abstract class.
Abstract class can have constructors while interface cannot
Abstract class can have non-abstract methods while interface can only have abstract methods
Interfaces are used to achieve multiple inheritance in Java
Abstract classes are used to provide a base for subclasses to extend...
An interface is a contract between two systems or components that defines the methods and properties that can be used to communicate with each other.
An interface defines a set of methods and properties that a class must implement.
Interfaces allow for polymorphism, where objects of different classes can be treated as if they are of the same type.
Interfaces can be used to define callbacks or event handlers.
Examples ...
Method overriding is redefining a method in a subclass with the same name and signature as in the superclass. Method overloading is defining multiple methods with the same name but different parameters in the same class.
Method overriding is used to provide a specific implementation of a method that is already provided by its superclass.
Method overloading is used to define multiple methods with the same name but di...
Map interface is a part of Java Collections Framework that maps unique keys to values.
It provides methods to add, remove, and retrieve elements based on their keys.
It does not allow duplicate keys.
It can be implemented by HashMap, TreeMap, and LinkedHashMap classes.
Example: Map<String, Integer> map = new HashMap<>();
map.put("John", 25);
int age = map.get("John"); // age = 25
Principles of OOPs include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: bundling data and methods that operate on that data within a single unit.
Inheritance: creating new classes from existing ones, inheriting properties and methods.
Polymorphism: ability of objects to take on multiple forms, allowing for flexibility in programming.
Abstraction: hiding implementation details and only show...
The virtual keyword in C++ is used to declare a virtual function, which can be overridden by a derived class.
Virtual functions allow for dynamic binding and polymorphism
They are used in inheritance to allow derived classes to provide their own implementation of a function
Virtual functions are called using a pointer or reference to the base class
The virtual keyword can also be used to declare a virtual destructor
An exception is an event that interrupts the normal flow of a program's execution.
Exceptions are used to handle errors and unexpected situations in a program.
They can be caused by a variety of factors, such as invalid input, hardware failures, or network issues.
Examples of exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IOException.
Exception handling involves catching and handling exce...
I applied via Approached by Company and was interviewed before Apr 2022. There were 3 interview rounds.
Principles of OOPs include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: bundling data and methods that operate on that data within a single unit.
Inheritance: creating new classes from existing ones, inheriting properties and methods.
Polymorphism: ability of objects to take on multiple forms, allowing for flexibility in programming.
Abstraction: hiding implementation details and only showing e...
Method overriding is redefining a method in a subclass with the same name and signature as in the superclass. Method overloading is defining multiple methods with the same name but different parameters in the same class.
Method overriding is used to provide a specific implementation of a method that is already provided by its superclass.
Method overloading is used to define multiple methods with the same name but differe...
Inheritance is a mechanism in C++ that allows a class to inherit properties of another class.
Inheritance helps in code reusability and saves time and effort in writing code.
Types of inheritance in C++ are single, multiple, multilevel, hierarchical, and hybrid.
Single inheritance is when a class inherits from only one base class.
Multiple inheritance is when a class inherits from more than one base class.
Multilevel inheri...
The virtual keyword in C++ is used to declare a virtual function, which can be overridden by a derived class.
Virtual functions allow for dynamic binding and polymorphism
They are used in inheritance to allow derived classes to provide their own implementation of a function
Virtual functions are called using a pointer or reference to the base class
The virtual keyword can also be used to declare a virtual destructor
An interface is a contract between two systems or components that defines the methods and properties that can be used to communicate with each other.
An interface defines a set of methods and properties that a class must implement.
Interfaces allow for polymorphism, where objects of different classes can be treated as if they are of the same type.
Interfaces can be used to define callbacks or event handlers.
Examples of in...
Abstract class can have implementation while interface cannot. A class can implement multiple interfaces but only extend one abstract class.
Abstract class can have constructors while interface cannot
Abstract class can have non-abstract methods while interface can only have abstract methods
Interfaces are used to achieve multiple inheritance in Java
Abstract classes are used to provide a base for subclasses to extend and ...
A functional interface is an interface that contains only one abstract method.
Functional interfaces are used in Java 8's lambda expressions and method references.
They can also have default methods and static methods.
Examples of functional interfaces include Runnable, Comparator, and Callable.
An exception is an event that interrupts the normal flow of a program's execution.
Exceptions are used to handle errors and unexpected situations in a program.
They can be caused by a variety of factors, such as invalid input, hardware failures, or network issues.
Examples of exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IOException.
Exception handling involves catching and handling exception...
Checked exceptions are checked at compile-time while unchecked exceptions are not.
Checked exceptions are those that are checked at compile-time and must be handled by the programmer using try-catch or throws clause.
Unchecked exceptions are those that are not checked at compile-time and can occur at runtime. They do not need to be handled explicitly.
Examples of checked exceptions include IOException, ClassNotFoundExcept...
ArrayList is not synchronized while Vector is synchronized.
ArrayList is faster than Vector as it is not synchronized.
Vector is thread-safe while ArrayList is not.
Vector is a legacy class while ArrayList is not.
Vector can grow by a specified amount while ArrayList can grow by half of its size.
Example: ArrayList<Integer> list = new ArrayList<>(); Vector<Integer> vector = new Vector<>();
Example: li...
Map interface is a part of Java Collections Framework that maps unique keys to values.
It provides methods to add, remove, and retrieve elements based on their keys.
It does not allow duplicate keys.
It can be implemented by HashMap, TreeMap, and LinkedHashMap classes.
Example: Map<String, Integer> map = new HashMap<>();
map.put("John", 25);
int age = map.get("John"); // age = 25
I applied via Campus Placement and was interviewed in Oct 2024. There were 2 interview rounds.
Test was easy and it took 40-50 mins for the test.
Topic was impact of social media on youths, lasted for 5-10 min
I applied via Campus Placement and was interviewed in Dec 2023. There were 2 interview rounds.
Current affairs, time required 10 minutes
Verbal, nonverbal time required 30 minutes
I applied via Company Website and was interviewed in Nov 2023. There were 4 interview rounds.
Topic for GD foreign culture
C and aptitude base question
Topic for GD foreign culture
I bring a strong foundation in Java, a passion for coding, and a commitment to continuous learning and teamwork.
Solid understanding of Java fundamentals, including OOP concepts, data structures, and algorithms.
Completed several projects during my coursework, such as a library management system using Java and MySQL.
Eager to learn and adapt to new technologies, demonstrated by my self-study of frameworks like Spring and ...
Top trending discussions
I applied via Approached by Company and was interviewed before Feb 2021. There were 2 interview rounds.
I applied via Approached by Company and was interviewed in Aug 2021. There were 2 interview rounds.
I appeared for an interview in Nov 2020.
Round duration - 40 minutes
Round difficulty - Medium
Round duration - 15 minutes
Round difficulty - Easy
Given an integer array ARR
of size N
, your task is to find the total number of subsequences in which all elements are equal.
A subsequence of an array i...
The task is to count the number of subsequences in an array where all elements are equal.
Iterate through the array and count the frequency of each element.
For each element, calculate the number of subsequences using the formula (2^frequency - 1).
Multiply the counts for each element to get the total number of subsequences.
Print the result modulo 10^9 + 7.
Tip 1 : Do Practice as much as you can
Tip 2 : Revise codes on regularly
Tip 1 : It should look nice and presentable
Tip 2 : Skills should be mentioned properly
posted on 27 May 2021
I applied via Naukri.com and was interviewed before May 2020. There was 1 interview round.
I applied via Company Website and was interviewed before Mar 2020. There was 1 interview round.
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
Start from the first element and compare it with the next element
If the first element is greater than the next element, swap them
Repeat this process for all elements in the list
Continue this process until no more swaps are needed
A Turing Machine is a theoretical device that can simulate any algorithmic computation.
It was proposed by Alan Turing in 1936 as a model for computation.
It consists of a tape, a head that can read and write symbols on the tape, and a set of rules for transitioning between states.
It can simulate any algorithmic computation, making it a powerful tool for theoretical computer science.
It is often used as a theoretical basi...
A hash function is a mathematical function that converts input data of arbitrary size into a fixed-size output.
Hash functions are used to index data in hash tables.
They are also used in cryptography to securely store passwords.
Examples of hash functions include MD5, SHA-1, and SHA-256.
based on 5 interview experiences
Difficulty level
Duration
based on 19 reviews
Rating in categories
Java Developer
10
salaries
| ₹1 L/yr - ₹4 L/yr |
Software Trainee
7
salaries
| ₹1 L/yr - ₹5 L/yr |
Technical Trainer
5
salaries
| ₹1.9 L/yr - ₹3.5 L/yr |
Java Trainer
5
salaries
| ₹1 L/yr - ₹3.6 L/yr |
Software Developer
4
salaries
| ₹1 L/yr - ₹9.9 L/yr |
BYJU'S
Whitehat jr
Planet Spark
Unacademy