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

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -