Accenture
Al Mufid Trading Co. Interview Questions and Answers
Q1. How does string work in java meaning, how its stored and how its reference is saved in pool
Strings in Java are stored in the String pool, which is a special area in the Java heap memory.
Strings in Java are immutable, meaning once a string is created, it cannot be changed.
When a string is created in Java, it is stored in the String pool if it does not already exist.
String literals are stored in the String pool, while strings created using the 'new' keyword are stored in the heap memory.
String pool helps in saving memory by reusing common strings, which improves perf...read more
Q2. What is difference between object and instance in java
An object is a physical entity in memory, while an instance is a specific realization of an object.
An object is a general concept, while an instance is a specific occurrence of that concept.
Objects are created using classes, while instances are created using the 'new' keyword.
Each instance has its own state (values of attributes) and behavior (methods).
Example: 'Car' is an object, while 'Toyota Camry' is an instance of the 'Car' object.
Q3. What is class and object in java
A class is a blueprint for creating objects in Java, while an object is an instance of a class.
A class defines the properties and behaviors of objects.
An object is created using the 'new' keyword followed by the class name.
Multiple objects can be created from the same class.
Q4. How much java and ui you know
I have strong knowledge and experience in Java programming and UI development.
Proficient in Java programming language, including core concepts like OOP, multithreading, and collections
Skilled in developing UI using technologies like HTML, CSS, JavaScript, and frameworks like React or Angular
Experience in integrating backend Java code with frontend UI for full stack development
Familiar with UI design principles and responsive web design practices
Q5. What is heap and stack memory
Heap and stack memory are two types of memory in computer systems. Heap memory is used for dynamic memory allocation, while stack memory is used for static memory allocation.
Heap memory is used for storing objects and is managed by the JVM. It is larger in size compared to stack memory.
Stack memory is used for storing method calls, local variables, and is limited in size. It follows Last In First Out (LIFO) order.
Example: When an object is created using the 'new' keyword, it ...read more
Q6. Write a java code to find second largest element
Java code to find second largest element in an array
Sort the array in descending order
Return the element at index 1 as the second largest element
More about working at Accenture
Top HR Questions asked in Al Mufid Trading Co.
Interview Process at Al Mufid Trading Co.
Top Java Full Stack Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month