i
Oracle
Filter interviews by
I applied via Referral and was interviewed in May 2024. There were 3 interview rounds.
Sort an array of strings containing '0', '1', and '2'.
Use counting sort algorithm to count the occurrences of '0', '1', and '2'.
Create a new array based on the counts of each element.
Return the sorted array.
Find the second greatest element in an array without sorting using C++ concepts.
Iterate through the array to find the greatest element.
While iterating, keep track of the second greatest element.
Return the second greatest element once the iteration is complete.
Designing a quick ecommerce site involves creating a user-friendly interface with easy navigation and secure payment options.
Focus on a clean and intuitive user interface
Implement a robust search functionality for products
Include secure payment gateways like PayPal or Stripe
Optimize site speed for quick loading times
Ensure mobile responsiveness for on-the-go shopping
Integrate customer reviews and ratings for trust-buil...
Consumer producer multithreading program involves multiple threads sharing a common buffer to produce and consume data.
Use synchronized data structures like BlockingQueue to handle thread synchronization.
Implement separate producer and consumer classes with run methods.
Use wait() and notify() methods to control the flow of data between producer and consumer threads.
Find missing and repeating element in an array of 1 to n elements in O(n) time and O(1) space.
Iterate through the array and for each element, mark the element at index equal to its value as negative. If the element is already negative, it is the repeating element.
After marking all elements, the positive element's index + 1 is the missing element.
Example: Array ['1', '2', '3', '3', '5'] - Repeating element is '3' and mi
Expected compensation should be based on industry standards, experience, skills, and location.
Research industry standards for Senior Software Engineer salaries
Consider your level of experience and skills
Take into account the cost of living in the location of the job
Negotiate based on your value to the company
I applied via Job Fair and was interviewed in Sep 2024. There was 1 interview round.
Inheritance in OOP allows a class to inherit properties and behaviors from another class.
Inheritance promotes code reusability by allowing a new class to use the properties and methods of an existing class.
The class that is being inherited from is called the base class or parent class, while the class that inherits is called the derived class or child class.
Derived classes can add new properties and methods, or overrid...
I applied via Naukri.com and was interviewed in May 2024. There were 3 interview rounds.
Generate all permutations of a given number without duplicates
Use backtracking to generate all possible permutations
Avoid duplicates by keeping track of used digits
Recursively swap digits to generate permutations
I applied via Campus Placement
DSA and Aptitude MCQs
Oracle interview questions for popular designations
Implement table tennis scorer
Get interview-ready with Top Oracle Interview Questions
I applied via Approached by Company and was interviewed in Apr 2024. There were 3 interview rounds.
Singleton pattern ensures a class has only one instance and provides a global point of access to it.
Ensures a class has only one instance by providing a global access point to it.
Uses a private constructor to restrict instantiation of the class.
Provides a static method to access the singleton instance.
Commonly used in scenarios where only one instance of a class is needed, such as database connections or logging.
Exampl...
POJO is a Plain Old Java Object with private fields and public getters/setters, while a Bean is a Java class with private fields and public zero-argument constructors.
POJO stands for Plain Old Java Object
POJO has private fields and public getters/setters
Bean is a Java class with private fields and public zero-argument constructors
Beans are usually used in Java EE frameworks like Spring for dependency injection
Calculate the product of all elements in an array except for the element itself.
Iterate through the array and calculate the product of all elements except the current element.
Use two separate arrays to store the product of elements to the left and right of the current element.
Multiply the corresponding elements from the left and right arrays to get the final result.
Two objects created - one in the string pool and one in the heap.
String 'a' is created in the string pool, while String 'b' is created in the heap.
String pool is a special area in the heap memory where strings are stored to increase reusability and save memory.
Using 'new' keyword always creates a new object in the heap, even if the content is the same as an existing string in the pool.
Static variables can be accessed from non-static methods using an object reference or by making the variable non-static.
Static variables can be accessed from non-static methods by creating an object of the class containing the static variable.
Alternatively, the static variable can be made non-static to be accessed directly from a non-static method.
Attempting to access a static variable directly from a non-static method
Emulate Producer/Consumer Problem using code
Create a shared buffer between producer and consumer
Use synchronization mechanisms like mutex or semaphore to control access to the buffer
Implement producer and consumer functions to add and remove items from the buffer respectively
Creating a deadlock involves two or more threads waiting for each other to release a resource they need.
Create two threads, each trying to lock two resources in a different order
Ensure that one thread locks resource A first and then tries to lock resource B, while the other thread locks resource B first and then tries to lock resource A
This will result in a situation where each thread is waiting for the other to releas
Implement LRU Cache using a data structure like LinkedHashMap in Java
Use LinkedHashMap to maintain insertion order
Override removeEldestEntry method to limit cache size
Update the access order on get and put operations
Merge and remove duplicates from two sorted arrays without using Collections
Use two pointers to iterate through both arrays simultaneously
Compare elements at each pointer and add the smaller one to the result array
Skip duplicates by checking if the current element is equal to the previous element
Code to start 5 threads in Java
Create a class that implements the Runnable interface
Instantiate 5 objects of the class
Create 5 threads using the objects and start them
Only the original string 'Something' will be garbage collected.
The concat method in Java does not modify the original string, but instead returns a new string with the concatenated value.
In this case, 'a' remains as 'Something' and a new string 'Something New' is created, but not assigned to any variable.
Since the new string is not stored in any variable, it will not be garbage collected.
Code to read a file in Java
Use FileReader and BufferedReader classes to read the file
Handle exceptions using try-catch blocks
Close the file after reading using close() method
Diameter of the given tree
Find the longest increasing subsequence in an array
Use dynamic programming to solve this problem efficiently
Iterate through the array and keep track of the longest increasing subsequence ending at each index
The final answer will be the maximum value in the longest increasing subsequence array
The challenges faced during my project work included tight deadlines, communication issues, and technical difficulties.
Tight deadlines required efficient time management and prioritization of tasks
Communication issues with team members led to misunderstandings and delays in progress
Technical difficulties such as software bugs or hardware malfunctions required troubleshooting and problem-solving skills
I chose Oracle for its reputation as a leader in database technology and its wide range of products and services.
Oracle is known for its reliable and secure database solutions
Oracle offers a variety of products and services for different business needs
Oracle has a strong reputation in the industry for innovation and customer support
I applied via Newspaper Ad and was interviewed in Aug 2024. There were 2 interview rounds.
Easy 1 dsa and 35 mcqs
Object-oriented programming concepts like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the ne
I applied via Walk-in
Question on DSA and few puzzles and system design questions
Right join includes all records from the right table and matching records from the left table, while left join includes all records from the left table and matching records from the right table.
Right join keeps all records from the right table, even if there are no matches in the left table.
Left join keeps all records from the left table, even if there are no matches in the right table.
Example: In a right join between ...
A cursor is a database object used to retrieve data from a result set one row at a time.
Used to fetch and manipulate data row by row
Improves performance by reducing memory usage
Can be static, dynamic, forward-only, etc.
Examples: FETCH, OPEN, CLOSE
A right join returns all records from the right table and the matched records from the left table.
Use when you want to include all records from the right table, even if there are no matches in the left table.
Syntax: SELECT * FROM table1 RIGHT JOIN table2 ON table1.column = table2.column;
Example: SELECT * FROM employees RIGHT JOIN departments ON employees.department_id = departments.department_id;
To find the 2nd max salary, you can use a SQL query with the MAX() function and a subquery.
Use a subquery to select the maximum salary excluding the highest salary.
Order the salaries in descending order and select the second row using LIMIT and OFFSET.
Example: SELECT MAX(salary) FROM employees WHERE salary < (SELECT MAX(salary) FROM employees);
Top trending discussions
Some of the top questions asked at the Oracle interview -
The duration of Oracle interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 619 interviews
Interview experience
based on 5.2k reviews
Rating in categories
Kolkata,
Hyderabad / Secunderabad
+14-9 Yrs
₹ 15-30 LPA
Noida,
Bangalore / Bengaluru
+14-9 Yrs
Not Disclosed
Senior Software Engineer
2.4k
salaries
| ₹10.2 L/yr - ₹40 L/yr |
Senior Consultant
2.1k
salaries
| ₹9.1 L/yr - ₹25 L/yr |
Principal Consultant
2k
salaries
| ₹14 L/yr - ₹36 L/yr |
Senior Member of Technical Staff
1.8k
salaries
| ₹12 L/yr - ₹45 L/yr |
Senior Application Engineer
1.4k
salaries
| ₹9.7 L/yr - ₹30 L/yr |
SAP
MongoDB
Salesforce
IBM