abstract class and reflection

P

Peter Parker

Is it possible to find out if a class is abstract (or uninstantiable) via
Java reflection? Thanks
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Peter said:
Is it possible to find out if a class is abstract (or uninstantiable) via
Java reflection? Thanks

Try the .getModifiers() method.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Trouble with reflection 0
Problem with reflection in C# 4
Reflection 2
reflection 2
abstract classes and generic types 18
empty interfaces via reflection 27
abstract static methods (again) 67
reflection library 16

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top