Q
What is the role of garbage collection in Java?

Answer & Solution

Answer: Option A
Solution:
Garbage collection in Java automates memory management by reclaiming memory occupied by objects that are no longer in use.
Related Questions on Average

Which of the following statements about Java's licensing model is true?

A). Java is open-source and free to use

B). Java is proprietary and expensive

C). Java is open-source but requires a license fee

D). Java is proprietary but free to use

Which of the following is not a characteristic of Java?

A). Static Typing

B). Dynamic Typing

C). Strongly Typed

D). Weakly Typed

Which of the following is not a Java application domain?

A). Artificial Intelligence

B). Database Management

C). Gaming

D). Social Networking

Which of the following is a benefit of Java's object-oriented nature?

A). Code Reusability

B). Code Duplication

C). Code Complexity

D). Code Confusion

What is the ownership of Java?

A). Oracle

B). Microsoft

C). Google

D). Apple

What is the default file extension for Java source files?

A). .java

B). .class

C). .jar

D). .exe

Which of the following statements about Java's platform independence is true?

A). Java code can run on any platform

B). Java code runs only on Windows

C). Java code runs only on Linux

D). Java code runs only on macOS

Which of the following is a common use of Java?

A). Mobile Applications

B). Video Editing

C). Graphic Design

D). 3D Modeling

What type of applications can be developed using Java?

A). Mobile, Desktop, Web

B). Mobile, Desktop

C). Mobile, Web

D). Desktop, Web

What is the Java Virtual Machine (JVM)?

A). Runtime Environment

B). Integrated Circuit

C). Compiler

D). Operating System