java - "GetObjectClass" method and "FindClass" method difference and usage -
in java native interface provided
jclass class = (*env)->findclass(env,"classname");
and
jclass class = (*env)->getobjectclass(env,"classname");
i know difference between 2 methods , how find class using class name , kind of situations can null.
getobjectclass
allows retrieve class object, not knowing class name. second argument getobjectclass
jobject
, not class name.
on other hand, findclass gives class reference if can specify class name.
so result of both function gives class reference. difference input (argument) each methods.
Comments
Post a Comment