Technology Questions

Practice Technology MCQs with answers and explanations. Page 74 of 79.

Category
Interview
Topic
Technology
Page
74 / 79
Mode
Practice

Questions

Open any question to view the answer and explanation.

In the Java Collections Framework, what is the Set interface and what fundamental property distinguishes a Set from a List?
Open
View answer
In Java date and time handling, what is the role of the java.util.SimpleTimeZone class and how is it typically used with TimeZone?
Open
View answer
In Java, what are native methods and why does the language provide the ability to declare methods as native using the native keyword?
Open
View answer
In Java, what are autoboxing and unboxing, and how do they relate primitive types to their corresponding wrapper classes at compile time and runtime?
Open
View answer
In Java thread synchronization, how does mutual exclusion occur inside an intrinsic monitor when multiple threads use synchronized blocks or synchronized methods on the same object?
Open
View answer
In Java, why do we need wrapper classes such as Integer, Double, and Boolean when primitive types like int, double, and boolean already exist?
Open
View answer
In Java object cloning, what is the difference between shallow cloning and deep cloning of an object graph?
Open
View answer
In object oriented terminology, what is the similarity between dynamic binding and dynamic linking in the context of method calls in languages such as Java?
Open
View answer
In Java, what is dynamic method dispatch and how does it relate to calling overridden methods through a superclass reference variable?
Open
View answer
In general programming terminology, what is the main difference between pass by value and pass by reference parameter passing?
Open
View answer
In Java concurrency, what are the two primary ways to create a new thread and which approach is generally preferred in most application code?
Open
View answer
In operating systems and Java concurrency concepts, what is the main difference between a process and a thread?
Open
View answer
In the Java Collections Framework, which interfaces are considered the basic core interfaces that most collection implementations are built upon?
Open
View answer
In algorithm analysis using Big O notation, which option correctly matches common data structures with their typical average case time complexities for basic operations?
Open
View answer
In Java, what is the main difference between the legacy Enumeration interface and the newer Iterator interface when traversing collections?
Open
View answer
In Java, consider the following program. If it is executed with command line arguments 1 2 3 as: java main_arguments 1 2 3, what will be the output printed on the console? class main_arguments { public static void main(String[] args) { String[][] argument = new String[2][2]; int x; argument[0] = args; x = argument[0].length; for (int y = 0; y < x; y++) System.out.print(" " + argument[0][y]); } }
Open
View answer
In Java programming, what is autoboxing and unboxing, and how do they automatically convert between primitive types and wrapper classes?
Open
View answer
In Java, can you directly access a non static (instance) variable from a static context such as a static method, and why or why not?
Open
View answer
In Java, what is the difference between an interface and an abstract class in terms of inheritance, method implementation, and typical usage?
Open
View answer
In a Java interface, given that interface fields are implicitly public, static, and final, which of the following declarations of X are equivalent?
Open
View answer

Practice smarter

Solve a few questions daily and revisit weak topics regularly to improve accuracy.