Ask Your Question
4

What distinguishes AppClassloader from SystemClassloader?

asked 2023-07-19 22:32:30 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-07-19 22:54:01 +0000

ladyg gravatar image

The AppClassloader is responsible for loading classes from the classpath, including user-defined classes, while the SystemClassloader loads classes from the system classpath, including classes from the Java runtime environment. The AppClassloader is a subclass of the SystemClassloader and has a higher priority in loading classes. Additionally, the AppClassloader can be customized by adding additional classpath elements, whereas the SystemClassloader cannot be modified.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-19 22:32:30 +0000

Seen: 10 times

Last updated: Jul 19 '23