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

What is a “stateless” protocol ?

997


What is boolean flag in java?

1100


what is bmg file and how to create that files?what will it contailn?

2355


What is meant by distributed application? Why are we using that in our application?

948


Can private class be inherited in java?

1035


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

1088


What is method overloading with type promotion?

1280


Can I declare a class as private?

1090


Can you write a java class that could be used both as an applet as well as an application?

963


What is java in simple terms?

1006


How can we break singleton in java?

972


What is the difference between hashmap and hashtable? What is an interface?

1171


What are the differences between heap and stack memory in java?

1067


What is public/private protected in java?

1051


How does arraylist work in java?

1129