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

What is the default file extension for Java source files?

A). .java

B). .class

C). .jar

D). .exe

What is one of the reasons for Java's popularity?

A). Ease of Learning

B). Complexity

C). Limited Community Support

D). Proprietary License

What is the significance of Java's community support?

A). Knowledge Sharing

B). Limited Resources

C). Lack of Innovation

D). Slow Development

Which of the following is a common use of Java?

A). Mobile Applications

B). Video Editing

C). Graphic Design

D). 3D Modeling

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

A). Java has a robust security model

B). Java is not secure

C). Java is highly vulnerable to attacks

D). Java doesn't support security features

Which of the following is not a Java application domain?

A). Artificial Intelligence

B). Database Management

C). Gaming

D). Social Networking

What is the ownership of Java?

A). Oracle

B). Microsoft

C). Google

D). Apple

What type of applications can be developed using Java?

A). Mobile, Desktop, Web

B). Mobile, Desktop

C). Mobile, Web

D). Desktop, Web

How many devices run Java globally?

A). More than 3 billion

B). More than 1 billion

C). More than 5 billion

D). More than 2 billion

How does Java facilitate code organization and reuse?

A). Object-Oriented Principles

B). Procedural Programming

C). Spaghetti Code

D). Copy-Paste Approach