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 string is utf8?

1039


Which class represents the socket that both the client and server use to communicate with each other?

1085


Difference between static binding and dynamic binding?

1183


What is arguments in java?

1056


What is string in java with example?

1111


Does unicode support all languages?

1086


How to create a thread in java?

1195


Is main an identifier?

1055


Is void a wrapper class?

998


How many decimal digits is 64 bit?

985


How does the garbage collector works in java?

1144


how to write a program for sending mails between client and server

2115


What are the basic concepts of OOPS in java?

1087


what is static import in java? Explain

1075


describe synchronization in respect to multithreading? : Java thread

973