Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
28.2.1. Types of Class Loaders
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
3 cards from this lesson. Good the night before a test.
Try these first
- 1.
What does the Bootstrap ClassLoader load?
Hint
Think about foundational classes needed for Java to run.
- 2.
Where does the Extension ClassLoader load classes from?
Hint
Consider where shared libraries are kept for Java applications.
- 3.
Which class loader loads core Java classes?
- Application ClassLoader
- Extension ClassLoader
- Bootstrap ClassLoader
Hint
Remember which loader is the most essential for starting up JVM.
- 4.
The Extension ClassLoader is responsible for:
- True: Loading classes from the lib/ext directory
- False: Loading user application classes
Hint
Think of a directory for additional libraries.
- 5.
Describe a scenario where class loader conflict might occur and how it affects JVM performance.
Hint
Think about versioning in libraries.
- 6.
How would you go about troubleshooting a memory leak caused by a class loader leak?
Hint
Look into tools that can show memory usage and class loader references.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting