Cyfuture
Oracle Interview Questions and Answers
Q1. What is four pillars of oops. What is array and vector. Implement queue using stack. Project based questions.
The four pillars of OOP are encapsulation, inheritance, polymorphism, and abstraction. Arrays are fixed-size data structures, while vectors are dynamic arrays. A queue can be implemented using two stacks.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Creating new classes based on existing classes, inheriting their attributes and methods.
Polymorphism: Objects of different classes can be treated as objects of a common superclas...read more
Q2. Diff between abstract class and interface Difference between array and array list Difference between method overloading and overriding Pillars of oops Deadlock Normalisation
Abstract class is a class with abstract methods, interface is a contract with only abstract methods. Array is fixed size, ArrayList is dynamic. Method overloading is same method with different parameters, overriding is redefining a method. OOP pillars are inheritance, encapsulation, polymorphism, abstraction. Deadlock is a situation where two or more processes are unable to proceed because each is waiting for the other to release a resource. Normalization is the process of or...read more
Q3. Difference between object and constructor?
Object is an instance of a class with its own state and behavior, while constructor is a special method used to initialize objects.
Object is created from a class using the 'new' keyword.
Constructor is a special method with the same name as the class.
Object has its own state (attributes) and behavior (methods).
Constructor is used to initialize the state of an object when it is created.
Example: Class Car { constructor(make, model) { this.make = make; this.model = model; } }
Exam...read more
Q4. Difference between abstraction and encapsulation?
Abstraction focuses on hiding the implementation details while encapsulation focuses on bundling the data and methods that operate on the data into a single unit.
Abstraction is the concept of hiding the complex implementation details and showing only the necessary features of an object.
Encapsulation is the bundling of data and methods that operate on the data into a single unit.
Abstraction allows for creating simple interfaces for complex systems, while encapsulation helps in...read more
Q5. What is dbms explain
DBMS stands for Database Management System. It is a software system that allows users to define, create, maintain and control access to databases.
DBMS is a software system that manages databases.
It allows users to define, create, maintain, and control access to databases.
DBMS provides tools for data manipulation, retrieval, and security.
Examples of DBMS include MySQL, Oracle, SQL Server, and PostgreSQL.
Q6. String builder vs string buffer
String builder is faster but not thread-safe, while string buffer is slower but thread-safe.
String builder is recommended for single-threaded applications for better performance.
String buffer is recommended for multi-threaded applications to ensure thread safety.
Example: StringBuilder sb = new StringBuilder(); StringBuffer sbf = new StringBuffer();
Q7. Four pillars of opps
The four pillars of object-oriented programming are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Allowing a new class to inherit properties and behavior from an existing class.
Polymorphism: The ability for objects of different classes to respond to the same message.
Abstraction: Hiding the complex implementation details and showing only the necessary features of an ob...read more
Q8. final keyword in oops
The final keyword in OOP is used to restrict the user from changing the value of a variable, overriding a method, or inheriting from a class.
Final variable: value cannot be changed once assigned
Final method: cannot be overridden in child classes
Final class: cannot be inherited by other classes
Q9. bsf graph explanation
BSF graph explanation
BFS (Breadth-First Search) is a graph traversal algorithm that explores all the neighbor nodes at the present depth before moving on to the nodes at the next depth.
It uses a queue data structure to keep track of the nodes to visit next.
BFS is often used to find the shortest path in an unweighted graph.
Example: BFS can be used to find the shortest path in a maze from the starting point to the exit.
Interview Process at Oracle
Top Associate Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month