Add office photos
Engaged Employer

Oracle

3.7
based on 5.2k Reviews
Video summary
Filter interviews by

OPPO Interview Questions and Answers

Updated 11 Sep 2024
Popular Designations

Q1. Why strungs are not mutavle in java ?

Ans.

Strings are immutable in Java to ensure thread safety and prevent unintended changes.

  • Immutable objects are safer to use in multi-threaded environments

  • String pool optimization is possible because of immutability

  • StringBuffer and StringBuilder classes are available for mutable string operations

View 1 answer

Q2. Common Elements in two Sorted Linked List

Ans.

Finding common elements in two sorted linked lists.

  • Traverse both lists simultaneously using two pointers.

  • Compare the values of the nodes pointed by the two pointers.

  • If they are equal, add the value to the result list and move both pointers.

  • If not, move the pointer pointing to the smaller value.

  • Repeat until one of the lists is fully traversed.

Add your answer

Q3. Kth element after merging two sorted arrays

Ans.

Finding the Kth element after merging two sorted arrays.

  • Merge the two sorted arrays into a single array.

  • Sort the merged array.

  • Return the Kth element from the merged and sorted array.

Add your answer

Q4. What is string pool ?

Ans.

String pool is a cache of string literals stored in memory for efficient reuse.

  • String pool is a part of Java's memory management system.

  • It stores a collection of unique string literals to save memory.

  • When a new string is created, it is first checked in the pool and reused if already present.

  • String pool can be accessed using the intern() method.

  • Example: String s1 = "Hello"; String s2 = "Hello"; s1 and s2 will point to the same object in the pool.

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

Q5. Graph basic level implementation

Ans.

Graph implementation involves creating nodes and edges to represent data and relationships.

  • Nodes represent data points and edges represent relationships between them

  • Graphs can be directed or undirected

  • Common graph algorithms include BFS, DFS, and Dijkstra's algorithm

Add your answer

Q6. I was asked to find diameter of a binary Tree

Ans.

To find the diameter of a binary tree, we need to find the longest path between any two nodes in the tree.

  • Traverse the tree recursively and calculate the height of the left and right subtrees.

  • Calculate the diameter of the left and right subtrees recursively.

  • The diameter of the tree is the maximum of the following three values: 1. Diameter of the left subtree 2. Diameter of the right subtree 3. Height of the left subtree + height of the right subtree + 1

  • Example: 1 / \ 2 3 / \ ...read more

Add your answer

Q7. all oops concepts in detail

Ans.

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 necessary features.

Add your answer

More about working at Oracle

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

Interview Process at OPPO

based on 8 interviews
3 Interview rounds
Coding Test Round - 1
Coding Test Round - 2
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

4.1
 • 32 Interview Questions
3.8
 • 25 Interview Questions
3.3
 • 16 Interview Questions
4.0
 • 15 Interview Questions
3.7
 • 11 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