Technology Questions

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

Category
Interview
Topic
Technology
Page
72 / 79
Mode
Practice

Questions

Open any question to view the answer and explanation.

In Java, are arrays considered primitive data types, and how are they actually represented in the language?
Open
View answer
In Java, why is the main(String[] args) method declared static in most applications?
Open
View answer
In standard Java applications, what is the return type of the main(String[] args) method and why?
Open
View answer
In Java, what is the argument of the main method and what does it represent?
Open
View answer
In Java, can the main(String[] args) method be declared final, and what effect would that have?
Open
View answer
In Java, does the order of the public and static modifiers matter in the main method declaration?
Open
View answer
In Java, can a single source file contain more than one class declaration, and what are the rules for public classes and file names?
Open
View answer
In core Java, which package is imported by default into every source file without using an explicit import statement?
Open
View answer
In Java, can a top-level class be declared as protected, and what are the rules for access modifiers on top-level classes?
Open
View answer
In Java, what is the purpose of declaring a variable as final, and how does it affect that variable?
Open
View answer
In Java, you do not want a class to be inherited by any other class. What should you do when declaring that class?
Open
View answer
In Java, when is it appropriate to define a method as static instead of making it an instance method?
Open
View answer
In Java, how is final different from finally and finalize(), and what does each one represent?
Open
View answer
In Java, which King class best represents the relationship "King has a best friend who is a Soldier"?
Open
View answer
In JavaBeans listener naming conventions, how many of the following method names follow the standard listener pattern: addListener, addMouseListener, deleteMouseListener, removeMouseListener, registerMouseListener?
Open
View answer
In object-oriented design, keeping the actions (methods) and attributes (data) together inside a single unit is called what?
Open
View answer
In Java memory management, who is responsible for automatically clearing unreferenced heap memory that is no longer needed at runtime?
Open
View answer
In the Java platform, what are the three primary responsibilities of the Java Virtual Machine (JVM) when executing a Java program?
Open
View answer
In structured programming, an algorithm that is written once and then reused from many different places in a program is commonly called what?
Open
View answer
In object oriented design, when client code does not have direct access to an object internal data and that data is hidden behind methods, which concept is being applied?
Open
View answer

Practice smarter

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