Filter interviews by
I applied via Campus Placement
ArrayList is a dynamic array that can grow or shrink in size during runtime.
To create an ArrayList, import java.util.ArrayList and create an instance of it.
Add elements to the ArrayList using the add() method.
Access elements using the get() method and remove elements using the remove() method.
Example: ArrayList
names.add("John"); names.add("Mary"); names.remove(0);
String is a sequence of characters. String buffer is a mutable sequence of characters.
String is immutable while String buffer is mutable
String buffer is more efficient for concatenating multiple strings
String buffer has methods to insert, append, and delete characters
Example: String str = "Hello"; StringBuffer sb = new StringBuffer("World");
Example: str.concat("!"); sb.append("!");
The '==' operator checks for value equality, while '===' checks for both value and type equality.
The '==' operator performs type coercion, which can lead to unexpected results.
The '===' operator is more strict and does not perform type coercion.
For example, 1 == '1' returns true, but 1 === '1' returns false.
It is generally recommended to use '===' for more predictable and reliable code.
SQL queries for CRUD operations
CREATE: INSERT INTO table_name (column1, column2, ...) VALUES (value1, value2, ...)
READ: SELECT column1, column2, ... FROM table_name WHERE condition
UPDATE: UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition
DELETE: DELETE FROM table_name WHERE condition
Top trending discussions
posted on 18 Sep 2024
I applied via Referral and was interviewed in Aug 2024. There were 3 interview rounds.
Given a list of integer find the longest increase sequence
Find the first non-repeating integer in a list using Java 8 stream API.
Use Java 8 stream API to group integers by count
Filter out integers with count greater than 1
Return the first non-repeating integer
Using Java 8 Stream API to find the fruit with maximum price in a Map of fruits.
Use entrySet() method to get a stream of key-value pairs from the Map.
Use max() method with Comparator.comparing() to find the entry with maximum price.
Extract the key (fruit) from the entry with maximum price.
Program to check if parenthesis are properly balanced
Use a stack data structure to keep track of opening parenthesis
Iterate through the input string and push opening parenthesis onto the stack
When a closing parenthesis is encountered, pop from the stack and check if it matches the corresponding opening parenthesis
If stack is empty at the end and all parenthesis are matched, then the input has properly balanced parenthe
posted on 10 Oct 2021
I applied via Walk-in and was interviewed in Jul 2024. There were 3 interview rounds.
Advanced Java coding
Core Java arrays and strings are fundamental data structures used for storing and manipulating data in Java programming.
Arrays in Java are used to store multiple values of the same data type in a single variable.
Strings in Java are objects that represent sequences of characters.
Arrays and strings in Java are both indexed collections, with arrays being mutable and strings being immutable.
Example: String[] names = {"Alic
posted on 5 Dec 2024
I applied via Campus Placement
posted on 8 Oct 2024
Questions on dsa, coding question, overall good experience and so on
I applied via LinkedIn and was interviewed in Oct 2024. There were 2 interview rounds.
Technical aspects about linked list,trees, stacks
Topic related to humanities
posted on 10 Sep 2024
posted on 6 Aug 2024
I applied via Naukri.com
Interview experience
based on 3 reviews
Rating in categories
Associate Software Engineer
24
salaries
| ₹2 L/yr - ₹3.6 L/yr |
Software Engineer
14
salaries
| ₹2 L/yr - ₹8 L/yr |
Java Developer
4
salaries
| ₹2.4 L/yr - ₹4.3 L/yr |
Softwaretest Engineer
4
salaries
| ₹3.6 L/yr - ₹4.5 L/yr |
Test Engineer
3
salaries
| ₹4.5 L/yr - ₹7.2 L/yr |
Reliance Communications
GAO Tek
Tata Teleservices
Henry Harvin Education