Add office photos
Engaged Employer

Cyfuture

2.9
based on 472 Reviews
Filter interviews by

Oracle Interview Questions and Answers

Updated 9 Oct 2024

Q1. What is four pillars of oops. What is array and vector. Implement queue using stack. Project based questions.

Ans.

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

Add your answer

Q2. Diff between abstract class and interface Difference between array and array list Difference between method overloading and overriding Pillars of oops Deadlock Normalisation

Ans.

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

Add your answer

Q3. Difference between object and constructor?

Ans.

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

Add your answer

Q4. Difference between abstraction and encapsulation?

Ans.

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

Add your answer
Discover Oracle interview dos and don'ts from real experiences

Q5. What is dbms explain

Ans.

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.

View 1 answer

Q6. String builder vs string buffer

Ans.

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();

Add your answer

Q7. Four pillars of opps

Ans.

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

View 1 answer

Q8. final keyword in oops

Ans.

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

Add your answer

Q9. bsf graph explanation

Ans.

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.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Oracle

based on 6 interviews
3 Interview rounds
Resume Shortlist Round
Aptitude Test Round
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Associate Software Engineer Interview Questions from Similar Companies

3.7
 • 60 Interview Questions
3.4
 • 47 Interview Questions
4.2
 • 32 Interview Questions
3.8
 • 25 Interview Questions
4.7
 • 15 Interview Questions
4.0
 • 15 Interview Questions
View all
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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