Oracle
Focus Software Sdn. Bhd Interview Questions and Answers
Q1. How to use JAVA code in Oracle BPEL
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
Q2. explain Integration BPM human task with SOA
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
Q3. Explain internal working of HashMap,Stream operations
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().
Q4. DSA problem longest subarray with given sum k
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.
Q5. Difference between ArrayList and LinkedList
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
Q6. Why String is immutable
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.
Q7. Explain internal working of hashmap
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
More about working at Oracle
Reviews
Interviews
Salaries
Users/Month