Say I have some Java code:
public class Widget {
...whatever
}
And some code that classloads the Widget
:
ClassLoader widgetLoader = Widget.class.getClassLoader();
Can widgetLoader
ever be null
? Why/why not? If so, under what circumstances?
According to this method javadoc: