Hot Topics
Exxon Mobil Solution
Technical Round
- Question 1
Tell us about your final year project and what was your role?
- Answer
Tell about the project you did and your role in that project.
- Question 2
What is static variable? What is its use?
- Answer
A static variable creates a single copy of the variable and is shared among all the objects at a class level.
Static variables are used to keep track of information that relates logically to an entire class, as opposed to information that varies from instance to instance.
- Question 3
What are access modifiers in Java?
- Answer
n Java, access modifiers are special keywords which are used to restrict the access of a class, constructor, data member and method in another class. Java supports four types of access modifiers:
Default
Private
Protected
Public
Modifier
Default
Private
Protected
Public
Same Class
YES
YES
YES
YES
Same package subclass
YES
NO
YES
YES
Same package non-subclass
YES
NO
YES
YES
Different package subclass
NO
NO
YES
YES
Different package non-subclass
NO
NO
NO
YES
- Question 4
What is NULL pointer and far pointer?
- Answer
NULL pointer is a pointer that is pointing to nothing. NULL pointer points to empty location in memory. The value of NULL pointer is 0. We can make a pointer to point to NULL.
Far pointer is a 32-bit pointer that can access information which is outside the computer memory.