johny is here Ответов: 0

Отражение , класс класса и странный синтаксис в java?


IS Class class is child of all class ?like Class Object that is father of all class?


Что я уже пробовал:

<pre>In java I can write something like this :

myclass.class.getClassLoader());

String.class.getClassLoader());

and we use Class class for reflection purpose but I cant understand how I can write that BUT for example why I can not write this :

String.BuiltinClassLoader.hasClassPath();
myclass.BuiltinClassLoader.hasClassPath();

(I mean the use of method of another class with that syntax I did not really want to use hasClassPath())

IS Class class is child of all class ?like Class Object that is father of all class?

0 Ответов