Descartes interview questions
Practice 27+ real Descartes interview questions covering coding, technical, project, and HR rounds. Prepare smarter for Descartes placement interviews.
- 27+ curated questions
- Coding, technical, project, and HR rounds
- Built for IPU placement preparation
Preview Questions
-
What is exception handling? Can we have a try block without a catch block?
Exception Handling in Java is a way to handle runtime errors so that the program doesn’t crash abruptly. It uses keywords like try, catch, throw, throws, and finally to detect, handle, and clean up after errors. Yes, we...
-
Can we make an abstract method in an abstract class final? If not, what type of error occurs (compile-time or runtime)?
You cannot make an abstract method final in Java because both keywords have opposite meanings — an abstract method must be overridden by subclasses, while a final method cannot be overridden. Hence, using both together...
-
Write a query to find the Nth highest salary in a table.
WITH RankedSalaries AS ( SELECT Salary, DENSE_RANK() OVER (ORDER BY Salary DESC) AS SalaryRank FROM Employees ) SELECT Salary FROM RankedSalaries WHERE SalaryRank = N; Explanation: - The DENSE_RANK() window function...
-
Write a query to fetch duplicate records from a table
To print duplicate rows in a table, we use the GROUP BY and HAVING clauses in SQL. For example, if the table name is Students and we want to find duplicate name entries: SELECT name, COUNT(*) FROM Students GROUP BY name...
-
What are the Java 8 features ?
Java 8 introduced several important features that greatly enhanced the language, especially enabling functional programming and streamlined data processing. Here are the main features: 1. Lambda Expressions : Enable you...
-
What is a hash table? How does it work internally?
A hash table is a data structure that stores data in key-value pairs, providing efficient insertion, deletion, and lookup operations. Internally, it uses a hash function to convert a key into an integer index, which...