Technology Questions

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

Category
Interview
Topic
Technology
Page
77 / 79
Mode
Practice

Questions

Open any question to view the answer and explanation.

In Java, what is the purpose of garbage collection and when is the garbage collector used during program execution?
Open
View answer
In Java parameter passing, what do pass by value and pass by reference mean, and how does Java actually pass arguments to methods?
Open
View answer
In Java GUI development, what is the difference between AWT and Swing, and why is Swing generally preferred for modern desktop applications?
Open
View answer
In Java multithreading, what is synchronization and why is it important when multiple threads access shared data?
Open
View answer
In core Java, what are wrapper classes and why are they used for primitive data types?
Open
View answer
In Java multithreading, what is the purpose of the wait(), notify(), and notifyAll() methods on an object's monitor?
Open
View answer
In Java, what is a top level class and how does it differ from nested or inner classes?
Open
View answer
In Java, what is a static member class (static nested class) and how does it differ from a non static inner class?
Open
View answer
In Java, what is a non static member class (inner class) and how is it related to its enclosing instance?
Open
View answer
In Java, what is a local class and where can it be declared inside a program?
Open
View answer
In Java, what is an anonymous class and when would you typically use one?
Open
View answer
In Java, what is the basic syntax to create an object and assign it to a reference variable of a class?
Open
View answer
In Java, how do you assign the address (reference) of one object to another reference variable of the same type?
Open
View answer
In Java, why can a static method not directly call a non static method of the same class without using an object reference?
Open
View answer
In Java, what is stored in the this reference inside an instance method or constructor?
Open
View answer
In a Java non static method, when is it compulsory to use this.fieldName to access a non static data member?
Open
View answer
In Java, what is the difference among public, protected and package access data members?
Open
View answer
In Java classes, how can we set the value of a private data member safely?
Open
View answer
In Java classes, how can we read or get the value of a private data member from outside the class?
Open
View answer
In Java, what is the difference between methods and initializer or code blocks?
Open
View answer

Practice smarter

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