Filter interviews by
I applied via Naukri.com and was interviewed in Jul 2021. There were 3 interview rounds.
Object is an instance of a class that has its own set of properties and methods. A class is a blueprint for creating objects.
An object is a real-world entity with its own set of attributes and behaviors.
A class is a template or blueprint for creating objects.
Objects are created from classes using the 'new' keyword.
Classes can have properties (variables) and methods (functions).
Inheritance allows classes to inherit prop...
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in child class with the same name and signature as in parent class.
Overloading is compile-time polymorphism while overriding is runtime polymorphism.
Overloading is done in the same class while overriding is done in different classes.
Overloading is used to provide different implementations of the same method...
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows for code reuse and promotes code organization.
The existing class is called the parent or superclass, while the new class is called the child or subclass.
The child class inherits all the properties and methods of the parent class, and can also add its own unique properti...
Trigger is a database object that executes automatically in response to certain events. Cursor is a database object used to manipulate data.
Triggers are used to maintain data integrity and consistency.
Triggers can be used to audit changes made to the database.
Cursors are used to iterate through a set of rows returned by a query.
Cursors can be used to update or delete rows in a table.
Triggers and cursors are commonly us
Union and intersection are set operations used in mathematics and computer science.
Union combines two sets and removes duplicates
Intersection returns the common elements between two sets
Example of union: {1,2,3} union {3,4,5} = {1,2,3,4,5}
Example of intersection: {1,2,3} intersection {3,4,5} = {3}
Encapsulation is the process of hiding implementation details and exposing only necessary information.
Encapsulation helps in achieving data abstraction and information hiding.
It allows for better control over data and prevents unauthorized access.
An example of encapsulation is a class in object-oriented programming, where the data members are private and can only be accessed through public methods.
Top trending discussions
I applied via Campus Placement and was interviewed in Jan 2021. There were 3 interview rounds.
Swap two numbers with and without temporary variable
Without temporary variable: Use addition and subtraction
With temporary variable: Use a third variable to store the value of one of the numbers
Example without temporary variable: a=5, b=7; a=a+b; b=a-b; a=a-b;
Example with temporary variable: a=5, b=7; temp=a; a=b; b=temp;
I applied via Naukri.com and was interviewed in Oct 2020. There was 1 interview round.
Second level cache is a caching mechanism used to improve performance by storing frequently accessed data in memory.
Second level cache is implemented at the application level and can be configured using frameworks like Hibernate.
To optimize SQL queries, one can use indexes, avoid using SELECT *, and use JOINs instead of subqueries.
SOLID principles are a set of design principles for writing maintainable and scalable cod...
To deploy an application in AWS, you need to create an EC2 instance, configure security groups, install necessary software, and upload your application code.
Create an EC2 instance in the desired region and select the appropriate instance type
Configure security groups to allow traffic to and from the instance
Install necessary software and dependencies on the instance
Upload your application code to the instance
Start the ...
I applied via Company Website and was interviewed before Aug 2020. There were 4 interview rounds.
C++ is an extension of C with object-oriented programming features.
C++ supports classes and objects while C does not.
C++ has better support for function overloading and templates.
C++ has a more complex syntax compared to C.
C++ is used for developing complex applications like games and operating systems.
C is used for developing system-level software like operating systems and device drivers.
I applied via Campus Placement and was interviewed in Dec 2020. There were 4 interview rounds.
I applied via Recruitment Consulltant and was interviewed before Jun 2021. There was 1 interview round.
BigInteger is used for mathematical operations involving very large integers in Java.
BigInteger is used when the range of values supported by primitive data types like int and long is not sufficient.
It is commonly used in cryptography and security applications.
It provides methods for arithmetic, bitwise, and logical operations on large integers.
Example: calculating factorial of a large number, generating large prime nu
Merge Sort Algo code in java
Divide the array into two halves
Recursively sort the two halves
Merge the sorted halves
Time complexity: O(n log n)
I applied via Naukri.com and was interviewed in Aug 2020. There was 1 interview round.
Assistant Professor
4
salaries
| ₹3 L/yr - ₹6 L/yr |
TCS
Accenture
Wipro
Cognizant