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<String> names = new ArrayList<String>();
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 9 Oct 2021
I applied via Campus Placement and was interviewed before Oct 2020. There was 1 interview round.
I applied via Campus Placement and was interviewed before Aug 2020. There were 4 interview rounds.
Recursive functions solve problems by breaking them down into smaller subproblems, often leading to elegant solutions.
A recursive function calls itself with modified parameters.
Base case is crucial to prevent infinite recursion.
Example: Factorial function - factorial(n) = n * factorial(n-1) with base case factorial(0) = 1.
Example: Fibonacci sequence - fib(n) = fib(n-1) + fib(n-2) with base cases fib(0) = 0, fib(1) = 1.
...
posted on 1 Apr 2021
posted on 24 Mar 2021
posted on 1 Apr 2021
posted on 2 Oct 2021
I applied via Naukri.com and was interviewed in Sep 2021. There were 3 interview rounds.
posted on 10 Oct 2021
Cognizant offers innovative projects, a collaborative culture, and growth opportunities, making it an ideal place for aspiring engineers.
Cognizant is known for its commitment to innovation, working on cutting-edge technologies like AI and cloud computing.
The company fosters a collaborative work environment, encouraging teamwork and knowledge sharing among employees.
Cognizant provides extensive training and development ...
posted on 13 Sep 2021
I applied via Recruitment Consultant and was interviewed in Mar 2021. There was 1 interview round.
posted on 1 Apr 2021
based on 1 interview experience
Difficulty level
Duration
based on 4 reviews
Rating in categories
Associate Software Engineer
21
salaries
| ₹2 L/yr - ₹3.6 L/yr |
Software Engineer
18
salaries
| ₹2 L/yr - ₹5.5 L/yr |
Java Developer
5
salaries
| ₹1.9 L/yr - ₹6.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
Henry Harvin Education
GAO Tek
Tata Teleservices