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 do you meant by Platform-Independent?
How will you call an Applet using Java Script Function?
What is methodological theory?
In what types of operations an ArithmeticException will be thrown?
Explain the overview of UDP messaging.
What do you mean by scope of variable?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Is java an ide?
why HashTable not allow null key and value
What are anonymous inner classes?
How will you measure that int takes up only 32 bits in memory?
How can you read content from file in java?