1. What is the primary goal of ZGC and Shenandoah collectors?
Both aim for sub-millisecond pauses by doing most GC work concurrently and using barriers to keep mutators running while objects move.
Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
Red Hat · Java
Practice Java questions specifically asked in Red Hat interviews – ideal for online test preparation, technical rounds and final HR discussions.
Questions
4
Tagged for this company + subject
Company
Red Hat
View company-wise questions
Subject
Java
Explore topic-wise practice
Go through each question and its explanation. Use this page for targeted revision just before your Red Hat Java round.
Both aim for sub-millisecond pauses by doing most GC work concurrently and using barriers to keep mutators running while objects move.
Metaspace holds class metadata (replacing PermGen). A common growth cause is classloader leaks—dynamically loading classes without unloading their defining classloader, often seen in hot-reloaded apps or container redeploys. Each leaked classloader pins its classes and metadata, expanding Metaspace.
WatchService lets you register a directory for change events. It’s best effort, may coalesce events, and is not a content diff tool or replication system.
Fork/Join targets divide-and-conquer algorithms. Workers steal tasks from others’ deques to stay busy. It’s not intended for I/O-heavy workloads nor does it preserve order.
For complete preparation, combine this company + subject page with full company-wise practice and subject-wise practice. You can also explore other companies and topics from the links below.