Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is there any need to import java.lang package?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If try block is successfully executed, Then Is Finally block executed?

1085


Explain when noclassdeffounderror will be raised ?

1052


How do I print a “?

997


What does s mean in regex?

1019


Is array serializable java?

984


What is backdrop?

1068


Can bool be null?

986


If an object reference is set to null, will the garbage collector immediately free the memory held by that object?

1153


Is main is a keyword?

1000


What is difference between string and new string?

1037


Where is java located?

1051


What is a top level class in java?

1029


Which is faster set or list in java?

1033


what is the swingutilities.invokelater(runnable) method for? : Java thread

1040


What does next mean in java?

969