posted 22 years ago
hi Wilfried,
i have a question. if we use Class.forName() then also would not the problem be same? because, "we want to access a static member of the class". we can't write,
Class.forName("blah..blah..blah...").staticMemberName;
right?
because Class.forName() returns "Class" object and compiler won't resolve staticMemberName variable in "Class". we have to write the class name to access the static member but we can't use full name of the class as compiler would complain that it didn't find the class, if the class is not there in the CLASSPATH.
so, even if we use Class.forName() , the problem seems not solved.
do you see what i mean?
am i right in my argument? if not, please correct me.
sorry, i might not be that clear in what i really mean. i'm little poor at certain things.
regards,
maulin