Filter interviews by
Encapsulation and Inheritance are two important OOPs concepts.
Encapsulation is the process of binding data and functions that manipulate that data together in a single unit, called a class.
Inheritance is the process of creating a new class by inheriting properties and methods from an existing class.
Encapsulation helps in data hiding and abstraction, which makes the code more secure and easy to maintain.
Inheritance...
String buffer is synchronized and thread-safe while string builder is not.
String buffer is slower than string builder due to synchronization.
String builder is faster but not thread-safe.
String buffer is preferred for multi-threaded applications.
String builder is preferred for single-threaded applications.
Both classes are used for manipulating strings efficiently.
try-catch-finally is used for handling exceptions in code.
try block contains the code that may throw an exception
catch block catches the exception thrown by try block
finally block contains code that will be executed regardless of exception
Multiple catch blocks can be used for handling different types of exceptions
Final keyword is used to declare a constant value that cannot be changed.
Final keyword can be used with variables, methods, and classes.
Final variables must be initialized at the time of declaration or in constructor.
Final methods cannot be overridden by subclasses.
Final classes cannot be extended by other classes.
Final keyword is also used in try-with-resources statement to declare resources that should be closed...
ArrayList is a dynamic data structure while Array is a static data structure.
ArrayList can grow or shrink dynamically while Array has a fixed size.
ArrayList can store objects of any type while Array can only store elements of the same data type.
ArrayList provides built-in methods for insertion, deletion, and searching while Array does not.
Example: ArrayList<String> names = new ArrayList<String>(); Stri...
Checked exceptions are checked at compile-time while unchecked exceptions are not.
Checked exceptions are those that are checked at compile-time and must be handled or declared in the method signature.
Unchecked exceptions are those that are not checked at compile-time and do not need to be handled or declared in the method signature.
Examples of checked exceptions include IOException, ClassNotFoundException, and SQL...
Thread creation involves initiating a new thread of execution in a program, allowing concurrent operations.
Threads can be created using the Thread class in Java: new Thread(() -> { /* code */ }).start();
In Python, use the threading module: threading.Thread(target=some_function).start() to create a new thread.
C++11 introduced std::thread for thread creation: std::thread t([] { /* code */ }); t.join();
Thread crea...
An object is an instance of a class. A class is a blueprint or template for creating objects.
A class defines the properties and behaviors of objects
An object is created from a class using the 'new' keyword
Multiple objects can be created from a single class
Classes can inherit properties and behaviors from other classes
Example: Class - Car, Object - Honda Civic
I applied via Referral and was interviewed in Apr 2021. There were 3 interview rounds.
Encapsulation and Inheritance are two important OOPs concepts.
Encapsulation is the process of binding data and functions that manipulate that data together in a single unit, called a class.
Inheritance is the process of creating a new class by inheriting properties and methods from an existing class.
Encapsulation helps in data hiding and abstraction, which makes the code more secure and easy to maintain.
Inheritance help...
Thread creation involves initiating a new thread of execution in a program, allowing concurrent operations.
Threads can be created using the Thread class in Java: new Thread(() -> { /* code */ }).start();
In Python, use the threading module: threading.Thread(target=some_function).start() to create a new thread.
C++11 introduced std::thread for thread creation: std::thread t([] { /* code */ }); t.join();
Thread creation ...
An object is an instance of a class. A class is a blueprint or template for creating objects.
A class defines the properties and behaviors of objects
An object is created from a class using the 'new' keyword
Multiple objects can be created from a single class
Classes can inherit properties and behaviors from other classes
Example: Class - Car, Object - Honda Civic
Checked exceptions are checked at compile-time while unchecked exceptions are not.
Checked exceptions are those that are checked at compile-time and must be handled or declared in the method signature.
Unchecked exceptions are those that are not checked at compile-time and do not need to be handled or declared in the method signature.
Examples of checked exceptions include IOException, ClassNotFoundException, and SQLExcep...
try-catch-finally is used for handling exceptions in code.
try block contains the code that may throw an exception
catch block catches the exception thrown by try block
finally block contains code that will be executed regardless of exception
Multiple catch blocks can be used for handling different types of exceptions
String buffer is synchronized and thread-safe while string builder is not.
String buffer is slower than string builder due to synchronization.
String builder is faster but not thread-safe.
String buffer is preferred for multi-threaded applications.
String builder is preferred for single-threaded applications.
Both classes are used for manipulating strings efficiently.
Final keyword is used to declare a constant value that cannot be changed.
Final keyword can be used with variables, methods, and classes.
Final variables must be initialized at the time of declaration or in constructor.
Final methods cannot be overridden by subclasses.
Final classes cannot be extended by other classes.
Final keyword is also used in try-with-resources statement to declare resources that should be closed afte...
ArrayList is a dynamic data structure while Array is a static data structure.
ArrayList can grow or shrink dynamically while Array has a fixed size.
ArrayList can store objects of any type while Array can only store elements of the same data type.
ArrayList provides built-in methods for insertion, deletion, and searching while Array does not.
Example: ArrayList<String> names = new ArrayList<String>(); String[] ...
Top trending discussions
I applied via Naukri.com and was interviewed in Jun 2021. There were 3 interview rounds.
I applied via Recruitment Consultant and was interviewed before Oct 2020. There were 3 interview rounds.
posted on 6 Nov 2015
I applied via Recruitment Consulltant and was interviewed before Mar 2022. There were 6 interview rounds.
I applied via Referral and was interviewed before Apr 2023. There were 3 interview rounds.
Binary search is a technique used to efficiently locate a target value within a sorted array.
Start by comparing the target value to the middle element of the array.
If the target value is less than the middle element, search the left half of the array.
If the target value is greater than the middle element, search the right half of the array.
Repeat the process until the target value is found or the subarray is empty.
I would use a combination of HTML, CSS, and JavaScript to create a simple web application that stores and displays data.
Use HTML to create the structure of the web application
Use CSS to style the elements on the page
Use JavaScript to handle user interactions and store/retrieve data
Consider using a backend server (e.g. Node.js) to handle data storage and retrieval
Utilize AJAX to fetch data from the server asynchronously
I applied via Naukri.com and was interviewed in May 2024. There were 2 interview rounds.
Detecting a cycle in a linked list using Floyd's Tortoise and Hare algorithm.
Use two pointers: slow and fast. Slow moves one step, fast moves two steps.
If there's a cycle, slow and fast will eventually meet.
If fast reaches the end (null), there's no cycle.
Example: In a list 1 -> 2 -> 3 -> 4 -> 2 (cycle), slow and fast meet at 2.
I applied via Approached by Company and was interviewed in Jan 2024. There was 1 interview round.
Map, reduce, and filter are higher-order functions in JavaScript used to manipulate arrays.
Map: Transforms each element in an array and returns a new array with the transformed elements.
Reduce: Reduces an array to a single value by applying a function to each element.
Filter: Creates a new array with elements that pass a certain condition.
I applied via Approached by Company and was interviewed in Oct 2022. There were 3 interview rounds.
It was a 1-hour interview.
there was 1 round of technical interviews and questions about DSA easy to medium from leetcode with optimization of code.
Monotype is a typeface design company that creates and licenses fonts for digital and print media.
Monotype is a leading provider of typeface design and technology solutions.
It offers a wide range of fonts for various applications, including web, mobile, and desktop.
Some of the popular typefaces created by Monotype include Helvetica, Times New Roman, and Arial.
Monotype also provides font management software and services...
A queue can be designed using an array or linked list data structure.
A queue follows the FIFO (First In First Out) principle.
Elements are added to the rear end and removed from the front end.
Array implementation requires keeping track of front and rear indices.
Linked list implementation requires keeping track of only front and rear nodes.
I applied via Job Fair and was interviewed in Oct 2022. There were 3 interview rounds.
Associate Consultant
39
salaries
| ₹2.8 L/yr - ₹5.5 L/yr |
SAP Abap Consultant
25
salaries
| ₹3 L/yr - ₹7.3 L/yr |
Professional Consultant
25
salaries
| ₹4.2 L/yr - ₹14.8 L/yr |
Software Developer
22
salaries
| ₹5 L/yr - ₹9.5 L/yr |
Associate Software Developer
15
salaries
| ₹3 L/yr - ₹4 L/yr |
HyScaler
Pitney Bowes
AvenData GmbH
Dataflow Group