i
ITC Infotech
Filter interviews by
Convert array to ArrayList of strings
Create a new ArrayList<String>
Use Arrays.asList() method to convert array to ArrayList
Example: String[] array = {"apple", "banana", "orange"}; ArrayList<String> list = new ArrayList<>(Arrays.asList(array));
String can be declared using double quotes, single quotes, or the String constructor.
Declare using double quotes: String str1 = "Hello";
Declare using single quotes: String str2 = 'World';
Declare using String constructor: String str3 = new String("Java");
The == operator checks for reference equality, while the equals method checks for value equality in strings.
Use == to check if two string variables refer to the same object in memory.
Use equals() method to check if two string variables have the same sequence of characters.
Example: String str1 = "hello"; String str2 = "hello"; str1 == str2 will return false, but str1.equals(str2) will return true.
String builder is not synchronized, while String buffer is synchronized.
String builder is faster than String buffer because it is not synchronized.
String buffer is thread-safe, while String builder is not.
String builder is preferred for single-threaded applications, while String buffer is preferred for multi-threaded applications.
Put is used to create or replace a resource, while patch is used to update a resource partially.
Put is idempotent, meaning multiple identical requests will have the same effect as a single request
Patch is not idempotent, as multiple identical requests may have different effects
Put requires the client to send the entire updated resource, while patch only requires the specific changes to be sent
To select the 3rd highest salary from the employee table, you can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.
Use a SQL query like 'SELECT salary FROM employee ORDER BY salary DESC LIMIT 1 OFFSET 2' to get the 3rd highest salary.
The 'ORDER BY' clause sorts the salaries in descending order, 'LIMIT 1' limits the result to 1 row, and 'OFFSET 2' skips the first two rows.
Make sure to adjust the 'OFFSET' valu...
I applied via Monster and was interviewed in May 2024. There was 1 interview round.
To select the 3rd highest salary from the employee table, you can use a SQL query with the 'LIMIT' and 'OFFSET' keywords.
Use a SQL query like 'SELECT salary FROM employee ORDER BY salary DESC LIMIT 1 OFFSET 2' to get the 3rd highest salary.
The 'ORDER BY' clause sorts the salaries in descending order, 'LIMIT 1' limits the result to 1 row, and 'OFFSET 2' skips the first two rows.
Make sure to adjust the 'OFFSET' value if ...
Put is used to create or replace a resource, while patch is used to update a resource partially.
Put is idempotent, meaning multiple identical requests will have the same effect as a single request
Patch is not idempotent, as multiple identical requests may have different effects
Put requires the client to send the entire updated resource, while patch only requires the specific changes to be sent
The == operator checks for reference equality, while the equals method checks for value equality in strings.
Use == to check if two string variables refer to the same object in memory.
Use equals() method to check if two string variables have the same sequence of characters.
Example: String str1 = "hello"; String str2 = "hello"; str1 == str2 will return false, but str1.equals(str2) will return true.
String can be declared using double quotes, single quotes, or the String constructor.
Declare using double quotes: String str1 = "Hello";
Declare using single quotes: String str2 = 'World';
Declare using String constructor: String str3 = new String("Java");
String builder is not synchronized, while String buffer is synchronized.
String builder is faster than String buffer because it is not synchronized.
String buffer is thread-safe, while String builder is not.
String builder is preferred for single-threaded applications, while String buffer is preferred for multi-threaded applications.
Convert array to ArrayList of strings
Create a new ArrayList<String>
Use Arrays.asList() method to convert array to ArrayList
Example: String[] array = {"apple", "banana", "orange"}; ArrayList<String> list = new ArrayList<>(Arrays.asList(array));
Top trending discussions
I applied via Approached by Company and was interviewed before Mar 2023. There was 1 interview round.
Key measures for checking work items include accuracy, completeness, consistency, and timeliness to ensure quality outcomes.
Accuracy: Verify that the work item meets specified requirements, e.g., a bug fix resolves the issue without introducing new errors.
Completeness: Ensure all necessary components are included, such as documentation and test cases for a new feature.
Consistency: Check that the work item aligns with e...
I applied via Recruitment Consultant and was interviewed before Oct 2020. There was 1 interview round.
I applied via Company Website and was interviewed before Jan 2021. There were 5 interview rounds.
I applied via Referral and was interviewed in Jul 2021. There were 3 interview rounds.
I applied via Walk-in and was interviewed in Jun 2021. There was 1 interview round.
I applied via LinkedIn and was interviewed in May 2021. There were 4 interview rounds.
SDLC stands for Software Development Life Cycle, which is a process used to design, develop, and test software.
SDLC is a structured approach to software development.
It consists of several phases including planning, analysis, design, implementation, testing, and maintenance.
Each phase has its own set of deliverables and objectives.
The goal of SDLC is to produce high-quality software that meets the needs of the end-users...
posted on 2 May 2021
Method overloading is having multiple methods with the same name but different parameters. Method overriding is having a subclass method with the same name and parameters as a superclass method.
Method overloading is used to provide different ways of calling the same method with different parameters.
Method overriding is used to provide a specific implementation of a method in a subclass that is already defined in a supe...
I appeared for an interview in Nov 2020.
I applied via Company Website and was interviewed in Dec 2020. There were 3 interview rounds.
based on 1 interview experience
Difficulty level
Duration
Associate Information Technology Consultant
5.1k
salaries
| ₹4.3 L/yr - ₹14.4 L/yr |
Lead Consultant
4.6k
salaries
| ₹16.4 L/yr - ₹30.5 L/yr |
Associate Consultant
958
salaries
| ₹2.5 L/yr - ₹18.4 L/yr |
Software Engineer
517
salaries
| ₹5 L/yr - ₹12 L/yr |
Senior Software Engineer
383
salaries
| ₹12.4 L/yr - ₹21 L/yr |
TCS
Mphasis
L&T Technology Services
Coforge