Filter interviews by
ConcurrentHashMap is a thread-safe version of HashMap in Java.
ConcurrentHashMap allows multiple threads to read and write to the map concurrently without the need for external synchronization.
It achieves this by dividing the map into segments, each of which can be locked independently for better performance.
ConcurrentHashMap is part of the java.util.concurrent package and was introduced in Java 5.
Example: Concurre...
A synchronous call in JavaScript is a function call that blocks the execution of the code until it completes.
Synchronous calls wait for the function to finish before moving on to the next line of code.
They can cause the program to become unresponsive if the function takes a long time to complete.
Example: Using the 'fetch' API to make a synchronous call to a server.
Use synchronizedList() method to synchronize an ArrayList in Java.
Create a synchronized list using Collections.synchronizedList() method.
Example: List<String> synchronizedList = Collections.synchronizedList(new ArrayList<>());
Access and modify the synchronized list using synchronized blocks to ensure thread safety.
The default value of an ArrayList in Java is an empty ArrayList.
Default value is an empty ArrayList, which means it has a size of 0.
The ArrayList will not have any elements stored in it by default.
Example: ArrayList<String> list = new ArrayList<>(); // Default value is an empty list.
Operations for adding and removing elements in an ArrayList in Java
To add an element to an ArrayList, use the add() method with the index where you want to insert the element
To remove an element from an ArrayList, use the remove() method with the index of the element you want to remove
Example: ArrayList<String> list = new ArrayList<>(); list.add("Apple"); list.add("Banana"); list.remove(0); // Removes ...
Session start and end in programming refers to the beginning and termination of a user's session on a website or application.
Session start occurs when a user logs in or visits a website, creating a unique session ID.
Session end happens when the user logs out or closes the browser, terminating the session.
Example: In Java servlets, HttpSession object is used to manage session start and end.
To call multiple APIs and fetch data sequentially, use asynchronous calls and handle responses in order.
Use asynchronous calls to make API requests in parallel
Handle responses in order to ensure data is fetched sequentially
Use promises or callbacks to manage the flow of data retrieval
I applied via Hirist and was interviewed in Nov 2024. There was 1 interview round.
The default value of an ArrayList in Java is an empty ArrayList.
Default value is an empty ArrayList, which means it has a size of 0.
The ArrayList will not have any elements stored in it by default.
Example: ArrayList<String> list = new ArrayList<>(); // Default value is an empty list.
Operations for adding and removing elements in an ArrayList in Java
To add an element to an ArrayList, use the add() method with the index where you want to insert the element
To remove an element from an ArrayList, use the remove() method with the index of the element you want to remove
Example: ArrayList<String> list = new ArrayList<>(); list.add("Apple"); list.add("Banana"); list.remove(0); // Removes Apple
ConcurrentHashMap is a thread-safe version of HashMap in Java.
ConcurrentHashMap allows multiple threads to read and write to the map concurrently without the need for external synchronization.
It achieves this by dividing the map into segments, each of which can be locked independently for better performance.
ConcurrentHashMap is part of the java.util.concurrent package and was introduced in Java 5.
Example: ConcurrentHas...
Session start and end in programming refers to the beginning and termination of a user's session on a website or application.
Session start occurs when a user logs in or visits a website, creating a unique session ID.
Session end happens when the user logs out or closes the browser, terminating the session.
Example: In Java servlets, HttpSession object is used to manage session start and end.
Use synchronizedList() method to synchronize an ArrayList in Java.
Create a synchronized list using Collections.synchronizedList() method.
Example: List<String> synchronizedList = Collections.synchronizedList(new ArrayList<>());
Access and modify the synchronized list using synchronized blocks to ensure thread safety.
A synchronous call in JavaScript is a function call that blocks the execution of the code until it completes.
Synchronous calls wait for the function to finish before moving on to the next line of code.
They can cause the program to become unresponsive if the function takes a long time to complete.
Example: Using the 'fetch' API to make a synchronous call to a server.
To call multiple APIs and fetch data sequentially, use asynchronous calls and handle responses in order.
Use asynchronous calls to make API requests in parallel
Handle responses in order to ensure data is fetched sequentially
Use promises or callbacks to manage the flow of data retrieval
Top trending discussions
Good it was good it was good only
I applied via Walk-in and was interviewed in Sep 2024. There were 2 interview rounds.
Java Arrays java looping statements java Strings
Clock and time and speed and percentage and directions
I applied via Naukri.com and was interviewed in Jan 2022. There was 1 interview round.
I applied via Company Website and was interviewed before Jun 2021. There were 2 interview rounds.
First round was coding as well as aptitude done together went well I guess focusing on codes helps a lot.
I applied via Naukri.com
I expect Amazon to foster innovation, provide growth opportunities, and maintain a customer-centric culture.
Opportunities for professional development, such as training programs and mentorship.
A collaborative work environment that encourages teamwork and idea sharing.
Access to cutting-edge technology and resources to drive innovation.
A strong focus on customer satisfaction, ensuring that every decision prioritizes the ...
I applied via Recruitment Consulltant and was interviewed before Jul 2021. There was 1 interview round.
Experienced professional with a strong educational background and clear career ambitions, eager to contribute to the company's success.
I have over 5 years of experience in project management, leading teams to successfully deliver complex projects on time.
I hold a Master's degree in Business Administration from XYZ University, where I specialized in strategic management.
My family has always emphasized the importance of ...
I applied via Naukri.com and was interviewed before Feb 2020. There were 3 interview rounds.
Workflow, trigger, reports, roles, profiles, permission set, and sharing rules are all important features in Salesforce.
Workflow is a series of automated steps that can be used to streamline business processes.
Triggers are used to execute code before or after a record is inserted, updated, or deleted.
Reports are used to display data in a visual format, such as a table or chart.
Roles are used to define the hierarchy of ...
I appeared for an interview before Jul 2020.
Yes, Infosys is listed on the Indian stock exchanges as well as on the NYSE.
Infosys is listed on the Bombay Stock Exchange (BSE) and National Stock Exchange of India (NSE)
It is also listed on the New York Stock Exchange (NYSE)
Infosys has a market capitalization of over $80 billion as of 2021
Some of the top questions asked at the DXFactor Java J2ee Developer interview -
based on 1 interview experience
Difficulty level
Duration
Software Engineer
9
salaries
| ₹4.2 L/yr - ₹11.5 L/yr |
Senior Data Engineer
9
salaries
| ₹8.8 L/yr - ₹10 L/yr |
Data Scientist
7
salaries
| ₹6.5 L/yr - ₹8.5 L/yr |
Data Engineer
7
salaries
| ₹6.6 L/yr - ₹8 L/yr |
Senior Software Engineer
6
salaries
| ₹14 L/yr - ₹20 L/yr |
TCS
Accenture
Wipro
Cognizant