Add office photos
Oracle logo
Engaged Employer

Oracle

Verified
3.7
based on 5.2k Reviews
Video summary
Filter interviews by
Software Engineer
Clear (1)

10+ Oracle Software Engineer Interview Questions and Answers

Updated 14 Dec 2024

Q1. Reverse Words in a String: Problem Statement

You are given a string of length N. Your task is to reverse the string word by word. The input may contain multiple spaces between words and may have leading or trai...read more

Ans.

Reverse words in a string word by word, removing leading/trailing spaces and extra spaces between words.

  • Split the input string by spaces to get individual words

  • Reverse the order of the words

  • Join the reversed words with a single space in between

Add your answer
right arrow

Q2. Minimum Number of Platforms Needed Problem Statement

You are given the arrival and departure times of N trains at a railway station for a particular day. Your task is to determine the minimum number of platform...read more

Ans.

The task is to determine the minimum number of platforms needed at a railway station based on arrival and departure times of trains.

  • Sort the arrival and departure times in ascending order.

  • Use two pointers to track overlapping schedules.

  • Increment platform count when a new train arrives before the previous one departs.

Add your answer
right arrow

Q3. coding question: given a vector numbers, return the index of the vector which has the longest length palindrome

Ans.

Return the index of the vector with the longest length palindrome

  • Iterate through each string in the vector

  • Check if the string is a palindrome

  • Track the index of the longest palindrome string

Add your answer
right arrow

Q4. 2) implement stack using queue 3) return triplets with given target sum

Ans.

Implement stack using queue and return triplets with given target sum

  • To implement stack using queue, we can use two queues and alternate between them for push and pop operations

  • For returning triplets with given target sum, we can use a nested loop and a hash set to store visited elements

  • We can then iterate through the array and check if the difference between target sum and current element exists in the hash set

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

Q5. Convert a number to english form that how it can be read in english .

Ans.

Convert a number to its English form for reading.

  • Break the number into groups of three digits

  • Convert each group to English words

  • Combine the words with appropriate thousand/million/billion suffixes

Add your answer
right arrow

Q6. What is difference between abstract class and interface?

Ans.

Abstract class can have implementation while interface cannot. Classes can implement multiple interfaces but only one abstract class.

  • Abstract class can have constructors while interface cannot.

  • Abstract class can have non-abstract methods while interface cannot.

  • Interfaces are used for full abstraction while abstract classes are used for partial abstraction.

  • Example: Abstract class - Animal with method eat() and subclass Dog with implementation. Interface - Runnable with method ...read more

Add your answer
right arrow
Are these interview questions helpful?

Q7. Given an integer array, find the length of the longest subarray that contains all unique elements.

Ans.

Find length of longest subarray with all unique elements in an integer array.

  • Use a sliding window approach to keep track of unique elements in the subarray.

  • Use a set to store unique elements and update the window accordingly.

  • Iterate through the array and update the window size based on unique elements.

Add your answer
right arrow

Q8. Delete nth node from end of linked list

Ans.

Delete nth node from end of linked list

  • Use two pointers, one to traverse the list and another to keep track of the nth node from the end

  • Once the nth node is reached, move both pointers until the end of the list

  • Delete the node pointed by the second pointer

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. System design of traffic signal

Ans.

Design a traffic signal system

  • Identify the number of lanes and intersections

  • Determine the traffic flow and peak hours

  • Choose appropriate sensors and controllers

  • Implement a synchronization algorithm

  • Consider emergency vehicle prioritization

  • Include pedestrian crossing signals

  • Ensure compliance with local regulations

Add your answer
right arrow

Q10. Eliminate Duplicates in array .

Ans.

Use a Set data structure to eliminate duplicates in an array of strings.

  • Create a Set to store unique elements from the array.

  • Iterate through the array and add each element to the Set.

  • Convert the Set back to an array to get the array without duplicates.

Add your answer
right arrow

Q11. Web development framework of jaba

Ans.

Java web development frameworks include Spring, Hibernate, Struts, and Play.

  • Popular Java web development frameworks include Spring, Hibernate, Struts, and Play

  • Spring is a widely used framework for building enterprise Java applications

  • Hibernate is an ORM framework for mapping Java objects to database tables

  • Struts is a framework for building web applications using the MVC design pattern

  • Play is a lightweight web framework for building scalable web applications

Add your answer
right arrow

Q12. Manger - System design

Ans.

System design is the process of defining the architecture, components, modules, interfaces, and data for a system to satisfy specified requirements.

  • Understand the requirements and constraints of the system

  • Identify the key components and their interactions

  • Consider scalability, reliability, and performance

  • Design for flexibility and maintainability

  • Use appropriate design patterns and technologies

Add your answer
right arrow

Q13. Hashmap implementation

Ans.

Hashmap is a data structure that stores key-value pairs and provides constant time complexity for insertion, deletion, and retrieval.

  • Hashmap uses hashing function to map keys to indices in an array

  • Collisions can occur when multiple keys map to the same index, which can be resolved using separate chaining or open addressing

  • Java implementation: HashMap map = new HashMap<>();

Add your answer
right arrow

Q14. Common point in linked list

Ans.

Common point in linked list refers to the node where two or more linked lists intersect.

  • The common point can be found by traversing both linked lists and comparing the nodes.

  • The common point can also be found by using two pointers, one for each linked list, and moving them until they meet at the common point.

  • Examples include finding the intersection point of two linked lists or finding the loop in a linked list.

Add your answer
right arrow

Q15. Rotate a linked list

Ans.

Rotate a linked list

  • Create a new node and make it the head

  • Traverse the list to find the tail and connect it to the old head

  • Update the tail to point to null

  • Handle edge cases like empty list or rotating by 0 positions

Add your answer
right arrow

More about working at Oracle

Back
Awards Leaf
AmbitionBox Logo
#22 Best Mega Company - 2022
Awards Leaf
Awards Leaf
AmbitionBox Logo
#3 Best Internet/Product Company - 2022
Awards Leaf
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Oracle Software Engineer

based on 27 interviews
3 Interview rounds
Resume Shortlist Round
Technical Round - 1
Technical Round - 2
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

View all
Recently Viewed
LIST OF COMPANIES
Credit Bajaar
Overview
PHOTOS
InsuranceDekho
3 office photos
SALARIES
Stream Global Services
SALARIES
Stream Global Services
INTERVIEWS
Oracle
No Interviews
INTERVIEWS
Oracle
10 top interview questions
SALARIES
L&T Technology Services
JOBS
L&T Technology Services
No Jobs
JOBS
L&T Technology Services
No Jobs
SALARIES
Stream Global Services
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 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