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 |
Explain the concept of proper inheritance?
0 Answers Thomson Reuters, Virtusa,
What are data structures in java?
What is the default size of set in java?
What does system out println () do?
What is the difference between serial and throughput garbage collector?
system.out.println(1 + 3);
What are virtual methods?
can I implement my own start() method? : Java thread
why we need this (1.object,2.class,3.data hiding,4.encapsulation,5.abstraction,6. polymorphism,7.inheritance)
Explain java heap space and garbage collection?
what is method reference in java 8?
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great