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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -