Add office photos
Engaged Employer

Oracle

3.7
based on 5k Reviews
Filter interviews by

Focus Software Sdn. Bhd Interview Questions and Answers

Updated 14 Apr 2024
Popular Designations

Q1. How to use JAVA code in Oracle BPEL

Ans.

To use JAVA code in Oracle BPEL, you can create a Java Embedding activity within a BPEL process.

  • Create a Java Embedding activity within the BPEL process

  • Write the Java code within the Java Embedding activity

  • Compile the Java code and deploy the BPEL process

Add your answer

Q2. explain Integration BPM human task with SOA

Ans.

Integration of BPM human task with SOA involves connecting business processes with service-oriented architecture.

  • BPM human task defines the steps and actions required for a specific task in a business process.

  • SOA is an architectural style that enables the creation of loosely coupled, reusable services.

  • Integration involves connecting the human tasks defined in BPM with the services in SOA to automate and streamline business processes.

  • This integration allows for better coordina...read more

Add your answer

Q3. Explain internal working of HashMap,Stream operations

Ans.

HashMap is a key-value data structure. Stream operations are used for processing collections of objects.

  • HashMap uses hashing to store and retrieve key-value pairs. It has constant time complexity for basic operations like get and put.

  • Stream operations are used for filtering, mapping, and reducing collections of objects. They are lazy and can be parallelized for better performance.

  • Examples of stream operations include filter(), map(), reduce(), and forEach().

Add your answer

Q4. DSA problem longest subarray with given sum k

Ans.

Find the longest subarray with sum k in an array.

  • Use a hashmap to store the prefix sum and its index.

  • Iterate through the array and check if the current prefix sum - k exists in the hashmap.

  • If it exists, update the maximum length of subarray.

  • Return the maximum length of subarray.

Add your answer
Discover Focus Software Sdn. Bhd interview dos and don'ts from real experiences

Q5. Difference between ArrayList and LinkedList

Ans.

ArrayList is implemented as a resizable array, LinkedList is implemented as a doubly linked list.

  • ArrayList provides fast random access, LinkedList provides fast insertion and deletion.

  • ArrayList uses more memory as it needs to allocate a fixed size array, LinkedList uses more memory for storing references to next and previous elements.

  • Example: ArrayList is suitable for scenarios where random access is required, LinkedList is suitable for scenarios where frequent insertion and ...read more

Add your answer

Q6. Why String is immutable

Ans.

String is immutable in Java to ensure security, thread safety, and optimization.

  • Immutable strings are thread-safe as they cannot be modified concurrently by multiple threads.

  • Immutable strings prevent security vulnerabilities like SQL injection attacks.

  • Immutable strings allow for string interning, reducing memory usage and improving performance.

Add your answer

Q7. Explain internal working of hashmap

Ans.

HashMap is a data structure that stores key-value pairs and uses hashing to quickly retrieve values based on keys.

  • HashMap internally uses an array of linked lists to store key-value pairs.

  • When a key-value pair is added, the key is hashed to determine the index in the array where it will be stored.

  • If multiple keys hash to the same index, a linked list is used to handle collisions.

  • To retrieve a value, the key is hashed again to find the index and then the linked list is searche...read more

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 Tips & Stories
Ace your next interview with expert advice and inspiring stories
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
Get AmbitionBox app

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