Filter interviews by
String is a class in Java used to represent a sequence of characters.
Strings are immutable in Java
String objects can be created using string literals or the new keyword
String class provides various methods for manipulating strings such as substring, replace, etc.
Top trending discussions
Comparable is an interface used for natural ordering, while Comparator is used for custom ordering in Java.
Comparable interface is used to define the natural ordering of objects. It is implemented by the class whose objects are to be sorted.
Comparator interface is used to define custom ordering of objects. It is implemented by a separate class that compares objects based on specific criteria.
Example: Sorting a list of ...
List allows duplicate elements and maintains insertion order, while Set does not allow duplicates and does not maintain order.
List can contain duplicate elements, Set cannot
List maintains insertion order, Set does not guarantee order
List is implemented by classes like ArrayList, LinkedList, Set is implemented by classes like HashSet, TreeSet
Example: List
I applied via Naukri.com and was interviewed in Jul 2024. There were 2 interview rounds.
All question related to core java
An object can be created in Java using new keyword, clone method, newInstance method, and deserialization.
Using new keyword: ClassName obj = new ClassName();
Using clone method: ClassName obj2 = (ClassName) obj1.clone();
Using newInstance method: ClassName obj3 = (ClassName) Class.forName("ClassName").newInstance();
Using deserialization: ObjectInputStream in = new ObjectInputStream(new FileInputStream("file.ser")); Class
I applied via Referral and was interviewed in Dec 2023. There was 1 interview round.
Custom exception is a user-defined exception that extends the functionality of the built-in exceptions in Java.
Custom exceptions are created by extending the Exception class or one of its subclasses.
They allow developers to define their own exception types for specific scenarios.
Custom exceptions can include additional methods and fields to provide more information about the exception.
Example: public class CustomExcept...
Use a HashSet to find duplicate elements in an array of strings.
Create a HashSet to store unique elements.
Iterate through the array and check if the element is already in the HashSet.
If it is, then it is a duplicate element.
Example: String[] array = {"apple", "banana", "apple", "orange"};
I applied via Scaler and was interviewed in Sep 2023. There were 3 interview rounds.
Balanced Bracket problem. {}[]()
I applied via Referral and was interviewed in Feb 2023. There were 3 interview rounds.
posted on 19 Dec 2023
I applied via Approached by Company and was interviewed before Dec 2022. There were 3 interview rounds.
Theory plus coding questions
Resolved project challenges through effective problem-solving techniques.
Identified the root cause of the challenges
Collaborated with team members to brainstorm solutions
Implemented appropriate strategies to overcome obstacles
Tested and validated the implemented solutions
Documented the resolution process for future reference
Core string concepts include immutability, string manipulation, and string comparison.
Strings in Java are immutable, meaning they cannot be changed once created.
String manipulation can be done using various methods like concatenation, substring, and replace.
String comparison can be done using equals() method for content comparison and == operator for reference comparison.
I applied via Recruitment Consulltant and was interviewed in Nov 2022. There were 3 interview rounds.
Start Pattern logic/Design Pattern
based on 20 reviews
Rating in categories
Software Engineer
6.2k
salaries
| ₹2 L/yr - ₹11 L/yr |
Senior Software Engineer
5.6k
salaries
| ₹6 L/yr - ₹23 L/yr |
Associate Software Engineer
4.5k
salaries
| ₹2 L/yr - ₹6.4 L/yr |
Module Lead
2.4k
salaries
| ₹8 L/yr - ₹33 L/yr |
Transaction Processing Officer
2.3k
salaries
| ₹1.4 L/yr - ₹4.5 L/yr |
Cognizant
Wipro
Accenture
TCS