Impetus Technologies
Subhadraa Exports Interview Questions and Answers
Q1. How to get values present in tables A but not in B without using joining conditions, minus, intersect, union...?
To get values present in table A but not in B without using joining conditions, minus, intersect, union, you can use a subquery.
Use a subquery to select values from table A that are not present in table B
Example: SELECT * FROM A WHERE value NOT IN (SELECT value FROM B)
Q2. How to take one string and do Permutations and Combinations without using stored procedures? Input: 'ABCD', Output: 'BCDA', 'CDBA' ....
Generate permutations and combinations of a given string without stored procedures.
Use recursion to generate all possible permutations and combinations.
Swap characters in the string to generate permutations.
Use a boolean array to keep track of used characters in combinations.
Store the generated permutations and combinations in an array of strings.
Q3. rule of overriding how JVM stores class and objects in memory, the internal working of memory management in depth Concept of serialization Thread's class methods StackOverflow exception how to check whether a n...
read moreQuestions related to Java programming language and memory management.
Overriding is a concept where a subclass provides its own implementation of a method that is already present in its superclass.
JVM stores class information in the method area and objects in the heap area.
Serialization is the process of converting an object into a stream of bytes to store it in a file or send it over a network.
Thread class methods include start(), run(), sleep(), join(), etc.
StackOverflow exc...read more
Q4. How to check and get 3 highest used words in a column from a table?
Get 3 highest used words in a column from a table.
Use GROUP BY and ORDER BY clauses in SQL query.
Apply LIMIT 3 to get top 3 words.
Use COUNT() function to count occurrences of each word.
Q5. working of hashmap abstract class vs interface why using the interface is better than abstract class and in which situation
Explains the working of hashmap and the difference between abstract class and interface.
Hashmap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.
Abstract classes are classes that cannot be instantiated and can have both abstract and non-abstract methods.
Interfaces are contracts that define a set of methods that a class must implement.
Using interfaces is better than abstract classes when multiple inheritance is needed or when a class ...read more
Q6. reverse the content of array in-place find the frequency of distinct elements in the array Singleton class implementation
Reverse array in-place, find frequency of distinct elements, and implement Singleton class.
To reverse an array in-place, swap the first and last elements, then move towards the center until the entire array is reversed.
To find the frequency of distinct elements, use a hash table to count occurrences of each element.
To implement a Singleton class, create a private constructor, a private static instance variable, and a public static method to return the instance.
Q7. Difference between data lake and delta table
Data lake is a storage repository that holds a vast amount of raw data in its native format, while Delta table is a versioned parquet table that stores data in a structured format.
Data lake stores raw data in its original form, while Delta table stores structured data in a versioned parquet format.
Data lake is suitable for storing large amounts of unstructured data, while Delta table is ideal for structured data with ACID transactions.
Data lake allows for schema-on-read, mean...read more
More about working at Impetus Technologies
Interview Process at Subhadraa Exports
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month