Application Developer

500+ Application Developer Interview Questions and Answers

Updated 16 Dec 2024

Q51. What are abstract classes in Java and what is the difference between an abstract class and an interface

Ans.

Abstract classes in Java are classes that cannot be instantiated and are used as blueprints for other classes.

  • Abstract classes cannot be instantiated, meaning you cannot create objects of an abstract class.

  • Abstract classes can have both abstract and non-abstract methods.

  • Interfaces in Java are similar to abstract classes, but they cannot have any method implementations.

  • A class can implement multiple interfaces, but it can only extend one abstract class.

  • Abstract classes can hav...read more

Q52. Selenium Question

What are the different types of waits available in WebDriver?

Q53. DBMS Question

What is the difference between Clustered and Non-clustered index?

Q54. Write a code for inserting two numbers in a text file given n2>n1 and the next entry should not be overlapping like if first was 4,6 next can't be 5,7.the second n1 has to be greater than first n2

Ans.

The code inserts two numbers in a text file, ensuring that the second number is greater than the first and there is no overlap between entries.

  • Read the existing entries from the text file

  • Check if the new numbers satisfy the conditions

  • If conditions are met, insert the new numbers into the file

  • Otherwise, display an error message

Are these interview questions helpful?
Q55. OOPS Question

What do you mean by virtual functions in C++?

Q56. OS Question

What is the major difference b/w 32-bit and 64-bit processors?

Share interview questions and help millions of jobseekers šŸŒŸ

man-with-laptop
Q57. Selenium Question

Explain the difference between driver.close() and driver.quit() command in Selenium?

Q58. Spring Boot Question

What does the @SpringBootApplication annotation do internally?

Application Developer Jobs

Application Developer: Oracle Cloud Middleware ā€¢ 3-8 years
IBM India Pvt. Limited
ā€¢
4.1
Gurgaon / Gurugram
Application Developer: Oracle Cloud Middleware ā€¢ 3-8 years
IBM India Pvt. Limited
ā€¢
4.1
Kolkata
Application Developer-Sterling Order Management ā€¢ 5-8 years
IBM India Pvt. Limited
ā€¢
4.1
Bangalore / Bengaluru
Q59. OOPS Question

What is the difference b/w Abstract Class and Interface in Java?

Q60. OS Question

What are the differences b/w Mutex and Semaphore?

Q61. What is the difference between @Controller and @RestController

Ans.

The @RestController annotation is a specialized version of the @Controller annotation in Spring MVC.

  • The @Controller annotation is used to define a controller class in Spring MVC.

  • The @RestController annotation is used to define a RESTful web service controller.

  • The @RestController annotation is a combination of @Controller and @ResponseBody annotations.

  • The @Controller annotation returns a view while the @RestController annotation returns data in JSON or XML format.

  • Example: @Con...read more

Q62. add a new feature using SOLID principles and explain your thought process

Ans.

Adding a new feature using SOLID principles

  • Identify the new feature and its requirements

  • Analyze the existing codebase and identify areas that need modification

  • Apply SOLID principles to design the new feature

  • Implement the feature using clean code practices

  • Test the feature thoroughly to ensure it meets the requirements

Q63. DBMS Question

What is the main difference between UNION and UNION ALL?

Q64. how to get distinct data without using distinct keyword

Ans.

To get distinct data without using distinct keyword, use GROUP BY clause.

  • Use GROUP BY clause with the column name to group the data by that column.

  • Use aggregate functions like COUNT, SUM, AVG, etc. to get the desired result.

  • Example: SELECT column_name FROM table_name GROUP BY column_name;

  • Example: SELECT column_name, COUNT(*) FROM table_name GROUP BY column_name;

Q65. OOPS Question

Can the static methods be overridden?

Q66. How do you allocate memory to 2D array dynamically? How and why does that work?

Ans.

Dynamic allocation of memory to 2D array is done using double pointer and malloc function.

  • Declare a double pointer to hold the 2D array.

  • Allocate memory to the first dimension using malloc function.

  • Allocate memory to the second dimension using a loop and malloc function.

  • Free the memory after use to avoid memory leaks.

  • Example: int **arr; arr = (int **)malloc(rows * sizeof(int *));

  • Example: for(int i=0; i

Q67. Difference between Stack and Queue with real time example

Ans.

Stack is LIFO and Queue is FIFO data structure. Stack is like a stack of plates and Queue is like a queue of people.

  • Stack is Last In First Out (LIFO) and Queue is First In First Out (FIFO)

  • Stack is like a stack of plates where the last plate added is the first one to be removed

  • Queue is like a queue of people where the first person to enter is the first one to leave

  • Stack is used in undo-redo functionality in text editors

  • Queue is used in printing jobs in a printer

Q68. What is overloading and what is overriding. Explain each with example

Ans.

Overloading is when multiple methods have the same name but different parameters. Overriding is when a subclass provides a different implementation of a method inherited from its superclass.

  • Overloading allows a class to have multiple methods with the same name but different parameters.

  • Overriding occurs when a subclass provides a different implementation of a method inherited from its superclass.

  • Overloading is resolved at compile-time based on the method signature.

  • Overriding i...read more

Q69. DBMS Question

Explain different types of Normalization forms in a DBMS.

Q70. Java Question

Explain the use of final keyword in variable, method and class.

Q71. What is your knowledge on devops tools. Explain me the most challenging use case that you have done.

Ans.

I have knowledge on various devops tools and have worked on challenging use cases such as implementing continuous integration and deployment pipelines using Jenkins and Docker.

  • Proficient in using Jenkins, Docker, Git, Ansible, and Kubernetes

  • Implemented CI/CD pipelines for multiple projects

  • Automated deployment process using Ansible and Kubernetes

  • Implemented containerization using Docker and Kubernetes

  • Implemented infrastructure as code using Terraform

  • Challenging use case: Setti...read more

Q72. How is undo operation (ctrl + z) implemented internally?

Ans.

Undo operation (ctrl + z) is implemented by maintaining a stack of previous states.

  • When a change is made, the current state is pushed onto the stack

  • When undo is called, the top state is popped and applied

  • Redo is implemented by maintaining a stack of undone states

  • Some applications may also implement a limit on the number of undo/redo steps

  • Undo/redo can be implemented at different levels (e.g. character, word, paragraph)

Q73. Suppose in an abstract class a function called x(), AND there is another function with the same name in its derived class.Now create pointer for the abstract class, point it to the derived class object...

read more
Ans.

Creating a pointer for an abstract class and pointing it to a derived class object with a function name conflict.

  • Use virtual keyword for the function in the abstract class.

  • Use override keyword for the function in the derived class.

  • Access the function using the pointer with the derived class object.

Q74. How do you measure 4 liters with a 5 liters and 3 liters container

Ans.

You can measure 4 liters by following these steps:

  • Fill the 5 liters container completely

  • Pour the 5 liters into the 3 liters container, leaving 2 liters in the 5 liters container

  • Empty the 3 liters container

  • Pour the remaining 2 liters from the 5 liters container into the 3 liters container

  • Fill the 5 liters container again

  • Pour 1 liter from the 5 liters container into the 3 liters container, which now has 3 liters

  • The 5 liters container now has 4 liters

Q75. Create a regular expression accepting 10-digit numeric characters starting with 1, 2, or 3.

Ans.

Regular expression for 10-digit numeric characters starting with 1, 2, or 3.

  • Use the pattern ^[1-3]\d{9}$ to match the criteria

  • The ^ symbol denotes the start of the string

  • The [1-3] specifies that the first digit must be 1, 2, or 3

  • \d{9} matches exactly 9 numeric digits

  • $ indicates the end of the string

Q76. How do you pass varying parameters from cobol to stored procedure

Ans.

Varying parameters can be passed using arrays of strings in COBOL to stored procedures.

  • Define an array in COBOL to hold the parameters

  • Populate the array with the varying parameters

  • Pass the array as a parameter to the stored procedure

  • In the stored procedure, use the array to access the varying parameters

Q77. What is software devlopement life cycle and why testing is done?

Ans.

Software development life cycle (SDLC) is a process followed to develop software. Testing is done to ensure quality and functionality.

  • SDLC is a process that includes planning, designing, coding, testing, and maintenance.

  • Testing is done to identify and fix defects, ensure functionality, and improve quality.

  • Types of testing include unit testing, integration testing, system testing, and acceptance testing.

  • Testing can be manual or automated, and should be done throughout the SDLC...read more

Q78. 3. Middle element of linked list in a single traversal

Ans.

To find the middle element of a linked list in a single traversal.

  • Use two pointers, one moving at twice the speed of the other.

  • When the faster pointer reaches the end, the slower pointer will be at the middle.

  • If the linked list has even number of elements, the middle will be the second of the two middle elements.

Q79. is the gold rate increasing or decreasing for the past 1 week

Ans.

The gold rate has been fluctuating in the past week.

  • Gold rate increased on Monday and Tuesday, but decreased on Wednesday and Thursday.

  • On Friday, the rate remained stable.

  • Overall, there has been a slight decrease in the gold rate over the past week.

Q80. Spring Boot Question

Explain @RestController annotation in Sprint boot?

Q81. to explain algorithm of the project that Iā€™m going to do in the upcoming semester and asked me code it

Ans.

The algorithm for the upcoming semester project involves developing an application.

  • Identify the requirements and objectives of the project

  • Design the application architecture and user interface

  • Implement the necessary algorithms and data structures

  • Test and debug the application

  • Optimize the performance and efficiency of the code

  • Document the project for future reference

Q82. what is a join in SQL? What are the types of joins?

Ans.

A join in SQL is used to combine rows from two or more tables based on a related column between them.

  • Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.

  • INNER JOIN returns rows when there is at least one match in both tables.

  • LEFT JOIN returns all rows from the left table and the matched rows from the right table.

  • RIGHT JOIN returns all rows from the right table and the matched rows from the left table.

  • FULL JOIN returns rows when there is a match in one of t...read more

Q83. How to bring data from an excel sheet into databricks?

Ans.

Data from an Excel sheet can be brought into Databricks using the read method in Databricks.

  • Use the read method in Databricks to read the Excel file.

  • Specify the file path and format (e.g. 'xlsx') when using the read method.

  • Transform the data as needed using Databricks functions and libraries.

  • Example: df = spark.read.format('com.crealytics.spark.excel').option('useHeader', 'true').load('file.xlsx')

Q84. 2-) What happens to the child process when parent gets terminated

Ans.

When a parent process is terminated, the child process becomes an orphan and is adopted by the init process.

  • When a parent process is terminated, the child process is not automatically terminated.

  • The child process becomes an orphan and is adopted by the init process.

  • The init process becomes the new parent of the orphaned child process.

  • The orphaned child process continues to run independently until it completes or is terminated.

Q85. 5-)What do you mean by incode , deadlock recovery and hierarchical file structure

Ans.

Incode refers to the code that is embedded within a program. Deadlock recovery is the process of resolving deadlocks in a system. Hierarchical file structure is a way of organizing files in a hierarchical manner.

  • Incode refers to the code that is written within a program.

  • Deadlock recovery involves detecting and resolving deadlocks in a system.

  • Hierarchical file structure organizes files in a tree-like structure with parent and child relationships.

  • Example of incode: Inline funct...read more

Q86. Java Question

Differentiate between ArrayList and Vector in java.

Q87. Types of search any how to use them is real life

Ans.

Types of search include linear search, binary search, and hash table search. They are used in real life for finding information efficiently.

  • Linear search: sequentially checks each element in a list until a match is found.

  • Binary search: divides a sorted array in half to quickly find the target value.

  • Hash table search: uses a hash function to map keys to values for fast retrieval.

  • Real life example: Using linear search to find a specific book in a library.

  • Real life example: Usin...read more

Q88. What ia the difference between Hibernate get() and load()

Ans.

Hibernate get() returns object by id, load() returns proxy object until accessed.

  • get() method returns the object from the database by its id.

  • load() method returns a proxy object until it is accessed, then it loads the object from the database.

  • get() method returns null if the object is not found in the database, while load() method throws an exception.

  • get() method is eager loading, while load() method is lazy loading.

Q89. Given a matrix.Write a code to print the transpose of the matrix

Ans.

The code prints the transpose of a given matrix.

  • Iterate through each row and column of the matrix.

  • Swap the elements at the current row and column with the elements at the current column and row.

  • Print the transposed matrix.

Q90. Write a code to count the number of times '1' occurs from 1 to 999999

Ans.

Code to count the number of times '1' occurs from 1 to 999999

  • Loop through all numbers from 1 to 999999

  • Convert each number to a string and count the number of '1's in it

  • Add the count to a running total

  • Return the total count

Q91. Write code to find the middle element of a linked list

Ans.

Code to find the middle element of a linked list

  • Traverse the linked list with two pointers, one moving twice as fast as the other

  • When the fast pointer reaches the end, the slow pointer will be at the middle element

  • If the linked list has even number of elements, return the second middle element

Q92. Array problem:- Find the repeating number in an array.

Ans.

Find the repeating number in an array.

  • Iterate through the array and store each element in a hash table or set.

  • If an element is already present in the hash table, it is a repeating number.

  • Alternatively, sort the array and check for adjacent elements with the same value.

  • Time complexity: O(n) or O(nlogn) depending on the approach used.

Q93. DBMS Question

Given an Employee Table, find the Nth highest salary from it.

Q94. DBMS Question

What are Constraints in SQL?

Q95. Java Question

Differentiate between HashSet and HashMap.

Q96. Perform until executing infinite loop what could be the reason?

Ans.

Infinite loop can occur due to logical errors in the loop condition or the loop body.

  • Incorrect loop condition

  • Missing or incorrect loop termination condition

  • Infinite recursion

  • Deadlock or race condition

  • Hardware or software failure

Q97. SQL Question

Given an Employee Table, find the Nth highest salary from it.

Q98. How much do you know about agile methodologies and why people are preferring this over any other framework?

Ans.

Agile methodologies are preferred for their flexibility, collaboration, and ability to adapt to changing requirements.

  • Agile methodologies prioritize individuals and interactions over processes and tools.

  • They emphasize working software over comprehensive documentation.

  • Agile allows for frequent iterations and feedback, leading to quicker delivery of value to customers.

  • Scrum, Kanban, and Extreme Programming (XP) are popular agile frameworks.

  • Agile promotes continuous improvement ...read more

Q99. How to find the second largest number in an array using javascript?

Ans.

To find the second largest number in an array using JavaScript, sort the array in descending order and return the element at index 1.

  • Sort the array in descending order using the sort() method.

  • Access the element at index 1 to get the second largest number.

Q100. DBMS Question

Explain the difference between the DELETE and TRUNCATE command in a DBMS.

Previous
1
2
3
4
5
6
7
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
Ā ā€¢Ā 10k Interviews
3.9
Ā ā€¢Ā 7.8k Interviews
3.7
Ā ā€¢Ā 7.3k Interviews
3.8
Ā ā€¢Ā 5.4k Interviews
4.1
Ā ā€¢Ā 4.9k Interviews
4.1
Ā ā€¢Ā 2.3k Interviews
3.7
Ā ā€¢Ā 867 Interviews
3.7
Ā ā€¢Ā 791 Interviews
3.8
Ā ā€¢Ā 172 Interviews
3.9
Ā ā€¢Ā 138 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Application Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ā¤ļø in India. Trademarks belong to their respective owners. All rights reserved Ā© 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter