S
Sameer
Please see the following code snippets:
1)
public Method getMethod(String name,
Class... parameterTypes)
throws NoSuchMethodException,
SecurityException
What is the meaning of ... after Class?
Does it indicate variable number of parameters?
But the method is supported Since JDK1.1.
2) Class c = String.class;
This is a code snippet from Reflection Java Tutorial.
From where .class comes? It is not a static field in String class.
Also it is not inherited from Object.
1)
public Method getMethod(String name,
Class... parameterTypes)
throws NoSuchMethodException,
SecurityException
What is the meaning of ... after Class?
Does it indicate variable number of parameters?
But the method is supported Since JDK1.1.
2) Class c = String.class;
This is a code snippet from Reflection Java Tutorial.
From where .class comes? It is not a static field in String class.
Also it is not inherited from Object.