Technology Questions
Practice Technology MCQs with answers and explanations. Page 78 of 79.
Category
Interview
Topic
Technology
Page
78 / 79
Mode
Practice
Questions
Open any question to view the answer and explanation.
In Java, what is a constructor and why is it used to initialize objects?
Open
View answer
In Java, how do you call or invoke a parameterized (argument) constructor?
Open
View answer
In Java, what is the difference among String, StringBuffer and StringBuilder classes?
Open
View answer
In Java, what is wrapping in the context of wrapper classes and primitive types?
Open
View answer
In Java, what is unwrapping (unboxing) in the context of wrapper classes and primitive types?
Open
View answer
In Java, what is a JAR file and what are the main uses of JAR archives?
Open
View answer
In Java, what is the difference between PATH and CLASSPATH environment variables?
Open
View answer
In Java, what is the use of the super call and when do we apply the super keyword?
Open
View answer
If a superclass reference points to a subclass object in Java, can we call subclass specific methods using that superclass reference?
Open
View answer
In object oriented Java, what is the use and benefit of method overriding?
Open
View answer
In object oriented Java, what is the use and benefit of method overloading?
Open
View answer
In Java, what is a final method and how does it affect inheritance and overriding?
Open
View answer
In Java, what is the purpose of overriding the toString() method of the Object class?
Open
View answer
In Java, why and when should we override the finalize() method?
Open
View answer
In Java, what is the use of the toString() method when it is called on an object?
Open
View answer
In Java, why do we use the protected access modifier and where is a protected member visible?
Open
View answer
In Java object-oriented programming, what is an abstract method and how is it represented in a class or interface?
Open
View answer
In Java, why are fields declared in an interface implicitly static and shared across all implementing classes?
Open
View answer
In Java, why are fields declared in an interface implicitly final (constant values that cannot be reassigned)?
Open
View answer
In Java, why are fields declared in an interface implicitly public and visible to all implementing classes and clients?
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.