Aricent Java Interview Questions. Coding compiler compiled a list of 21 real-time java interview questions for experienced. These advanced java questions will help you to prepare for Aricent job interview.
Explain OOP and its relation to the .NET Framework?
Ans: OOP is the acronym for Object-Oriented Programming. It is a programming structure that uses self-contained entities called ‘objects’ instead of methods to achieve the desired functionality. OOP allows .NET developers to create modular programs and classes containing methods, properties, fields, events, and other logical modules.
3 What is the Diamond of Death?
Ans: It is an ambiguity that arises due to multiple inheritances in C#. Two classes B and C inherit from A, and D inherits from both B and C but doesn’t override the method defined in A. The Diamond Problem arises when class B or C has overridden the method differently and D cannot decide to inherit from either B or C.
Ans: An interface is a declaration for a set of class members. It is a reference type that contains only abstract members such as Events, Methods, Properties, etc.
3 What are the types of Polymorphism?
Ans: There are two types of Polymorphism:
2 What are implementation inheritance and interface inheritance?
Ans: Implementation inheritance is when a class inherits all members of the class from which it is derived. Interface inheritance is when the class inherits only signatures of the functions from another class.
4 Name design patterns in the .NET Framework?
Ans: There are 23 design patterns classified into 3 categories:
2 How can a class be prevented from being inherited?
Ans: To prevent a class from being inherited, the sealed keyword in C# can be used. The NotInheritable keyword can be used in VB.NET to prevent accidental inheritance of the class.
4 What is the Global Assembly Cache (GAC)?
Ans: The Global Assembly Cache is a machine-wide code cache that is stored in a folder in the Windows directory. It stores the .NET assemblies that are specifically designated to be shared by all applications executed on the system.
5 What is the session object?
Ans: A Session object stores information and variables about a user and retains it through the session.
7 What are client-side and server-side validations in Web pages?
Ans: Serialization is the process of converting the state of an object into a form (a stream of bytes) to be persisted or transported. Deserialization converts a stream into an object and is the opposite of serialization. These processes allow data to be stored and transferred.
1 What is the difference between Stack and Queue?
Ans: The values in a stack are processed following the LIFO (Last-In, First-Out) principle, so all elements are inserted and deleted from the top end. But a queue lists items on a FIFO (First-In, First-Out) basis in terms of both insertion and deletion. The elements are inserted from the rear end in a queue and deleted from the front end.
1 What are EXE and DLL?
Ans: EXE is an executable file that works as an application and it runs individually as it contains an entry point. DLL is a Dynamic Link Library which is a supportive file to other applications, and it cannot run individually.