Filter interviews by
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a static data structure with a fixed size, while ArrayList is a dynamic data structure that can grow or shrink in size.
Arrays can hold primitive data types and objects, while ArrayList can only hold objects.
Arrays are faster than ArrayList for accessing elements, but ArrayList is more flexible and easier to work ...
Encapsulation, Inheritance, and Polymorphism are the OOP concepts used in POM.
Encapsulation: Encapsulating web elements and their related methods in page classes
Inheritance: Extending base page class to create specific page classes
Polymorphism: Using method overriding in page classes
Index in SQL is a data structure that improves the speed of data retrieval operations on a database table.
Indexes are created on columns in a database table to quickly retrieve data based on the values in those columns.
They can be unique or non-unique, clustered or non-clustered.
Examples of indexes include primary keys, foreign keys, and indexes created for frequently searched columns.
Dynamic means constantly changing or active.
Constantly changing or evolving
Active or lively
Responsive to input or stimuli
Opposite of static or fixed
Examples: Dynamic websites that update in real-time, dynamic pricing in e-commerce
Merge two sorted arrays a and b into a single sorted array
Create a new array to store the merged result
Use two pointers to iterate through arrays a and b, comparing elements and adding the smaller one to the result array
Handle cases where one array is longer than the other by appending the remaining elements to the result array
The behavior of the equal method in an overridden method will change.
When the equal method is incremented in an overridden method, the comparison logic will be different from the parent class.
This can lead to unexpected behavior if not implemented correctly.
Make sure to thoroughly test the new equal method to ensure it functions as intended.
The method will no longer be considered as an override and will be treated as a new method.
The method will no longer have the same signature as the method it is supposed to override.
The compiler will not throw any error as it will treat the method as a new method.
The superclass method will be called instead of the overridden method.
A generic collection in Java is a collection that can hold objects of any data type.
Generic collections are defined with a type parameter that specifies the type of objects it can hold.
Examples of generic collections in Java include ArrayList
Using generic collections helps ensure type safety and avoids the need for explicit type casting.
I applied via Company Website and was interviewed in Jul 2024. There was 1 interview round.
Yes, the super keyword can be used in the same constructor method.
The super keyword is used to call the constructor of the parent class.
It is commonly used to initialize the parent class's instance variables.
Example: super(parameter1, parameter2);
The method will no longer be considered as an override and will be treated as a new method.
The method will no longer have the same signature as the method it is supposed to override.
The compiler will not throw any error as it will treat the method as a new method.
The superclass method will be called instead of the overridden method.
A generic collection in Java is a collection that can hold objects of any data type.
Generic collections are defined with a type parameter that specifies the type of objects it can hold.
Examples of generic collections in Java include ArrayList
Using generic collections helps ensure type safety and avoids the need for explicit type casting.
The behavior of the equal method in an overridden method will change.
When the equal method is incremented in an overridden method, the comparison logic will be different from the parent class.
This can lead to unexpected behavior if not implemented correctly.
Make sure to thoroughly test the new equal method to ensure it functions as intended.
Index in SQL is a data structure that improves the speed of data retrieval operations on a database table.
Indexes are created on columns in a database table to quickly retrieve data based on the values in those columns.
They can be unique or non-unique, clustered or non-clustered.
Examples of indexes include primary keys, foreign keys, and indexes created for frequently searched columns.
Encapsulation, Inheritance, and Polymorphism are the OOP concepts used in POM.
Encapsulation: Encapsulating web elements and their related methods in page classes
Inheritance: Extending base page class to create specific page classes
Polymorphism: Using method overriding in page classes
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a static data structure with a fixed size, while ArrayList is a dynamic data structure that can grow or shrink in size.
Arrays can hold primitive data types and objects, while ArrayList can only hold objects.
Arrays are faster than ArrayList for accessing elements, but ArrayList is more flexible and easier to work with.
Dynamic means constantly changing or active.
Constantly changing or evolving
Active or lively
Responsive to input or stimuli
Opposite of static or fixed
Examples: Dynamic websites that update in real-time, dynamic pricing in e-commerce
Merge two sorted arrays a and b into a single sorted array
Create a new array to store the merged result
Use two pointers to iterate through arrays a and b, comparing elements and adding the smaller one to the result array
Handle cases where one array is longer than the other by appending the remaining elements to the result array
Top trending discussions
posted on 8 Jan 2021
posted on 16 Sep 2021
I appeared for an interview before Sep 2020.
Round duration - 50 minutes
Round difficulty - Easy
This was a Data Structural round.
Given a two-dimensional array/list consisting of integers 0s and 1s, where 1 represents land and 0 represents water, determine the number of distinct islands. A group of...
Count the number of distinct islands in a 2D array of 0s and 1s.
Identify islands by performing depth-first search (DFS) on the grid
Use a set to store the shape of each island and check for duplicates
Consider translations to determine distinct islands
Round duration - 50 minutes
Round difficulty - Easy
This was a Data Structural round.
You are tasked with arranging 'N' words of varying lengths such that each line contains at most 'M' characters, with each word separated by a space. The challenge is to minimiz...
The goal is to minimize the total cost of arranging 'N' words on each line with a maximum character limit 'M'.
Calculate the cost of each line as the cube of extra space characters needed to reach 'M'.
Minimize the total cost by arranging words to fit within the character limit on each line.
Ensure each word appears fully on one line without breaking across lines.
Round duration - 60 minutes
Round difficulty - Easy
This was a System Design round.
Design a system similar to Red Bus for handling bookings and onboarding vendors and customers.
Implement a user-friendly interface for customers to search and book tickets
Create a vendor portal for vendors to manage their offerings and availability
Include payment gateway integration for secure transactions
Develop a robust backend system for managing bookings, cancellations, and refunds
Utilize a database to store user in...
Round duration - 50 minutes
Round difficulty - Easy
This was a System Design round
Round duration - 50 minutes
Round difficulty - Easy
This was an HR round.
Tip 1 : Practice as much as you can.
Tip 2 : Prepare for company, not in general.
Tip 3 : Your past work should be objective and your contribution should be very clear
Tip 1 : Keep only relevant things for the job you are applying.
Tip 2 : Minimal data with measurable contribution and effect.
I applied via Monster and was interviewed before Apr 2020. There was 1 interview round.
posted on 14 May 2018
A generic swap function swaps two values of any data type.
The function should take two parameters of any data type.
Use a temporary variable to store the value of one parameter.
Assign the value of the second parameter to the first parameter.
Assign the value of the temporary variable to the second parameter.
Search for an element in a rotated sorted linked list.
Find the pivot point where the list is rotated.
Divide the list into two sublists based on the pivot point.
Perform binary search on the appropriate sublist.
Handle edge cases such as empty list and list with only one element.
Search an element in a rotated sorted array
Find the pivot point where the array is rotated
Divide the array into two sub-arrays based on pivot point
Perform binary search on the appropriate sub-array
Repeat until element is found or sub-array size is 1
Given a Sudoku board, find possible numbers for an empty cell.
Iterate through empty cells and check possible numbers using row, column, and box constraints.
Use a set to keep track of possible numbers for each empty cell.
Return the set of possible numbers for the given empty cell.
Find integer average of 4 unsigned integers without typecasting
Add all the integers and divide by 4
Use bit shifting to divide by 4
Handle overflow by using long long data type
Use unsigned int data type for input
Code to identify 32 bit or 64 bit architecture of a processor
Check if the operating system is 32 bit or 64 bit
If OS is 32 bit, processor is 32 bit
If OS is 64 bit, check if processor supports 64 bit architecture
Use CPUID instruction to check if processor supports 64 bit architecture
Convert binary number to base 64 integer
Divide the binary number into groups of 6 bits
Convert each group of 6 bits to decimal
Map the decimal value to the corresponding base 64 character
Concatenate the base 64 characters to form the final integer
Creating test cases for random scenarios ensures software reliability and robustness through diverse input validation.
Identify edge cases: Test with minimum and maximum input values, e.g., an empty array vs. a large array.
Use random data: Generate random inputs to simulate real-world usage, e.g., random user names or passwords.
Test invalid inputs: Ensure the system handles unexpected inputs gracefully, e.g., negative n...
I applied via Referral
Some of the top questions asked at the TransImpact Senior Qa Software Tester interview -
based on 1 interview experience
Difficulty level
Duration
Application Developer
5
salaries
| ₹5.6 L/yr - ₹17 L/yr |
Executive Assistant
4
salaries
| ₹7 L/yr - ₹12 L/yr |
Senior SEO Analyst
4
salaries
| ₹6 L/yr - ₹7.6 L/yr |
Softwaretest Engineer
4
salaries
| ₹4 L/yr - ₹4.5 L/yr |
IT Operations Specialist
4
salaries
| ₹3.7 L/yr - ₹7.8 L/yr |
Oracle
Amdocs
Carelon Global Solutions
Automatic Data Processing (ADP)