scala classloaders confusion

后端 未结 2 2019
隐瞒了意图╮
隐瞒了意图╮ 2021-02-14 15:04

Please consider the following test program (using scala 2.9.0.1)

object test
{
  def main(args:Array[String]) = {
    println(ClassLoader.getSystemClassLoader.ge         


        
2条回答
  •  忘了有多久
    2021-02-14 15:46

    From Wikipedia's classloader article:

    The system class loader loads code found on java.class.path, which maps to the system CLASSPATH variable.

    Not sure about the second null though. Maybe someone else can clear that up.

提交回复
热议问题