Filter interviews by
A constructor is a special type of method that is automatically called when an object is created.
Constructors have the same name as the class they belong to
Constructors do not have a return type
Constructors can be used to initialize object properties
Example: public class Person { public Person() { // constructor code here } }
I was interviewed before Jan 2021.
Round duration - 60 minutes
Round difficulty - Easy
Two coding questions were given in the first round to be solved in 60 minutes.
Given an array A
containing 'N' integers and an integer m
, rearrange the elements of the array such that the differences between the array elements and m
are sor...
Rearrange array elements based on their differences from a given integer.
Calculate the differences between each element and the given integer.
Sort the elements based on their differences while maintaining the original order for elements with the same difference.
Implement a function to rearrange the array elements as per the given criteria.
Given an arbitrary binary tree, a node of the tree, and an integer 'K', find all nodes that are at a distance K from the specified node, and return a list of th...
The task is to find all nodes in a binary tree that are at a distance K from a given node.
Traverse the binary tree to find the given node
From the given node, perform a depth-first search to find all nodes at distance K
Use a list to store the values of the nodes at distance K
Return the list of values in any order
Round duration - 60 minutes
Round difficulty - Easy
This was a technical round with questions based on DSA, DBMS, Computer Networking and project based questions.
Ninja is tasked with printing a triangle pattern based on a given number 'N' for any test case.
N = 4
1
232
34545
4567654
The pat...
Print a triangle pattern of numbers based on a given number 'N'.
Iterate through each row and print the numbers accordingly
Use spaces to center-align the numbers in each row
Increment the numbers in each row as per the pattern
Web server serves static content over HTTP, while application server runs dynamic content and business logic.
Web server handles HTTP requests and responses, serving static content like HTML, images, and CSS.
Application server executes business logic, runs dynamic content, and interacts with databases.
Web server examples include Apache, Nginx, while application server examples include Tomcat, JBoss.
Web server focuses on...
The internet is a global network of interconnected computers that communicate using standardized protocols.
The internet is made up of a vast number of interconnected networks of computers.
Data is transmitted over the internet using protocols such as TCP/IP.
Websites are hosted on servers connected to the internet, and users access them using web browsers.
Internet Service Providers (ISPs) provide access to the internet f...
SQL query to find the nth highest salary
Use the 'SELECT DISTINCT' statement to get unique salary values
Order the salaries in descending order using 'ORDER BY' clause
Use 'LIMIT' and 'OFFSET' to get the nth highest salary
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round with behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
Multithreading is the ability of a program to perform multiple tasks concurrently.
Multithreading allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include running multiple downloads simultaneously or updating a GUI while performing a background task
Synchronization is important to prevent race conditions and ensure thread safety
Multithreading in Java allows concurrent execution of multiple threads.
Java provides built-in support for multithreading through the java.lang.Thread class.
Threads can be created by extending the Thread class or implementing the Runnable interface.
The start() method is used to start a new thread, which calls the run() method.
Synchronization mechanisms like synchronized blocks and locks can be used to control access to ...
No, Java does not support multiple inheritance. However, interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes.
This is because multiple inheritance can lead to ambiguity and conflicts.
However, a class can implement multiple interfaces in Java.
An interface can extend multiple interfaces, allowing for inheritance of multiple interfaces.
This is known as interface inheritan
DO-WHILE loop executes the code block at least once, while WHILE loop executes only if the condition is true.
DO-WHILE loop checks the condition at the end of the loop
WHILE loop checks the condition at the beginning of the loop
DO-WHILE loop executes the code block at least once
WHILE loop may not execute the code block at all if the condition is false
I would rate myself as an 8 on a scale of 1-10.
I have a strong understanding of software development principles and practices.
I have experience working with multiple programming languages and frameworks.
I am skilled in problem-solving and debugging.
I have successfully delivered complex software projects in the past.
I continuously strive to learn and improve my skills.
Display data of two tables by joining them using a common column.
Use SQL JOIN statement to combine data from two tables based on a common column.
Choose the appropriate type of JOIN based on the relationship between the tables.
Specify the columns to be displayed in the SELECT statement.
Use aliases to differentiate between columns with the same name in both tables.
Apply any necessary filters or sorting to the result set.
Multithreading is the ability of a program to perform multiple tasks concurrently.
Multithreading allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include running multiple downloads simultaneously or updating a GUI while performing a background task
Synchronization is important to prevent race conditions and ensure thread safety
Java supports multithreading through the java.lang.Thread class and java.util.concurrent package.
Java threads are created by extending the Thread class or implementing the Runnable interface.
Threads can be started using the start() method.
Synchronization can be achieved using synchronized keyword or locks.
Java provides several classes and interfaces to support concurrent programming such as Executor, ExecutorService, F...
Java does not support multiple inheritance, but interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes, but it can implement multiple interfaces.
Interfaces can inherit from multiple interfaces using the 'extends' keyword.
For example, interface C can extend interfaces A and B: 'interface C extends A, B {}'
Do-While loop executes the code block once before checking the condition, while loop checks the condition first.
Do-While loop is used when the code block needs to be executed at least once.
While loop is used when the code block may not need to be executed at all.
Do-While loop is less efficient than While loop as it always executes the code block at least once.
Example of Do-While loop: do { //code block } while (conditi...
Join the tables on a common column and display the combined data.
Identify the common column in both tables
Use JOIN statement to combine the tables
Select the columns to display
Apply any necessary filters or sorting
Display the data in a table or list format
Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.
Primary key cannot have null values, while unique key can have one null value.
A table can have only one primary key, but multiple unique keys.
Primary key is used as a foreign key in other tables, while unique key is not.
Example: Employee ID can be a primary key, while email address can be a unique key.
I have a strong background in software development, excellent problem-solving skills, and a passion for learning new technologies.
Extensive experience in programming languages such as Java, Python, and C++
Proven track record of delivering high-quality software solutions on time and within budget
Strong analytical and problem-solving skills, with the ability to quickly adapt to new technologies and frameworks
Excellent co...
My hobbies include coding, reading, and playing video games. My strengths are problem-solving, attention to detail, and teamwork. My weaknesses are impatience and a tendency to overthink.
Hobbies: Coding, reading, playing video games
Strengths: Problem-solving, attention to detail, teamwork
Weaknesses: Impatience, tendency to overthink
I am a software developer with experience in Java and Python.
Graduated with a degree in Computer Science
Worked on multiple projects using Java and Python
Familiar with Agile methodology
Strong problem-solving skills
Constantly learning and improving
Multithreading is the ability of a CPU to execute multiple threads concurrently.
Multithreading improves performance by utilizing idle CPU time.
Threads share the same memory space, allowing for efficient communication.
Examples include web servers handling multiple requests and video games rendering graphics while processing user input.
The question is asking about how a specific implementation is done in Java.
Explain the implementation details of the specific feature or functionality in Java
Provide code examples if applicable
Discuss any relevant libraries or frameworks used in the implementation
While loop executes only if the condition is true, do-while loop executes at least once before checking the condition.
While loop checks the condition first, then executes the code block
Do-while loop executes the code block first, then checks the condition
While loop may not execute at all if the condition is false initially
Do-while loop always executes at least once before checking the condition
No, Java does not support multiple inheritance. However, interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes, which is known as multiple inheritance.
However, a class can implement multiple interfaces, which is known as multiple interface inheritance.
By implementing multiple interfaces, a class can inherit the abstract methods defined in those interfaces.
For example, c...
To display data of two tables, we can use JOIN operation in SQL.
Identify the common column(s) between the two tables.
Use JOIN operation to combine the data from both tables based on the common column(s).
Choose the appropriate type of JOIN operation (INNER, LEFT, RIGHT, FULL) based on the requirement.
Use SELECT statement to display the required columns from the combined table.
Example: SELECT t1.column1, t2.column2 FROM ...
Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.
Primary key is a column or set of columns that uniquely identifies each record in a table
Primary key cannot have null values
A table can have only one primary key
Unique key ensures that a column or set of columns have unique values
Unique key can have null values
A table can have multiple unique keys
I would rate myself as an 8 on a scale of 1-10.
I have a strong understanding of software development principles and practices.
I have experience working with multiple programming languages and frameworks.
I am skilled in problem-solving and debugging.
I have successfully delivered complex software projects in the past.
I continuously strive to learn and improve my skills.
The importance of version control in software development
Version control is a system that tracks changes to files over time
It allows multiple developers to work on a project simultaneously
Helps in managing codebase, tracking bugs, and rolling back changes
Examples of version control systems include Git, SVN, and Mercurial
Java program to sort 10 numbers
Use Arrays.sort() method to sort the array of numbers
Declare an array of size 10 and initialize it with the given numbers
Print the sorted array using a loop
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A parent class Animal can have child classes like Dog, Cat, and Bird, each with their own unique implementation of the method 'makeSound'.
Polymorphism makes code more flexible and reusable.
C is a low-level language while Java is a high-level language with automatic memory management.
C is compiled while Java is interpreted
C has pointers while Java does not
Java has built-in garbage collection while C does not
Java is platform-independent while C is not
Java has a larger standard library than C
C is commonly used for system programming while Java is used for web and mobile applications
Yes, the project was made on the latest software.
We used the latest version of the programming language and framework.
We made sure to keep all dependencies up to date.
We followed best practices for software development to ensure compatibility with the latest software.
For example, we used React 17 and Node.js 14 for our web application.
Yes, I have experience in Android programming.
I have developed several Android applications using Java and Kotlin.
I am familiar with Android Studio and the Android SDK.
I have experience with Android UI design and development.
I have worked with various Android libraries and APIs, such as Retrofit, Gson, and Google Maps API.
I have published apps on the Google Play Store.
The latest version of Android is Android 12.
Android 12 was released on October 4, 2021.
It includes new features such as Material You design, privacy enhancements, and improved performance.
It is currently available for select devices and will roll out to more in the coming months.
An example of Java code
Use the 'public static void main(String[] args)' method as the entry point of the program
Declare variables with their data types before using them
Use loops and conditionals for control flow
Use classes and objects for creating reusable code
Handle exceptions using try-catch blocks
based on 1 interview
Interview experience
Software Engineer
88
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Developer
30
salaries
| ₹0 L/yr - ₹0 L/yr |
Test Engineer
25
salaries
| ₹0 L/yr - ₹0 L/yr |
Devops Engineer
21
salaries
| ₹0 L/yr - ₹0 L/yr |
Softwaretest Engineer
16
salaries
| ₹0 L/yr - ₹0 L/yr |
Info Edge
Network 18
Jagran Prakashan
Tv18 Broadcast