Is there any need to import java.lang package?
Answers were Sorted based on User's Feedback
Answer / navneet raushan
Hi Rakesh .. I m writing the code
import java.lang.reflect.*;
public class DumpMethods {
public static void main(String args[])
{
try {
Class c = Class.forName(args[0]);
Method m[] = c.getDeclaredMethods();
for (int i = 0; i < m.length; i++)
System.out.println(m[i].toString());
}
catch (Throwable e) {
System.err.println(e);
}
}
}
| Is This Answer Correct ? | 2 Yes | 4 No |
Answer / rakesh
navneet can u justify your ans with example plzzzz.
| Is This Answer Correct ? | 1 Yes | 4 No |
What super () does in java?
Can we have a try block without catch block?
garbate collector(GC)?
Explain Linked HashSet
Can we sort list in java?
What is one third plus one third as a fraction?
What are the basic concepts of OOPS in java?
0 Answers Axtria, ITC Indian Tobacco Company,
How to call a Stored Procedure from JDBC?
What do you mean by exception handling in Java?
What is OOP's Terms with explanation?
What is the final keyword?
What is a platform?