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?

Answers were Sorted based on User's Feedback



Is there any need to import java.lang package?..

Answer / venkataanjaneyulu.sudireddy

Cloneable
Runnable

Is This Answer Correct ?    0 Yes 1 No

Is there any need to import java.lang package?..

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

Is there any need to import java.lang package?..

Answer / rakesh

navneet can u justify your ans with example plzzzz.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More Core Java Interview Questions

Same common question what is Map,Set,HashMap,List????

4 Answers   Symphony,


What is a reflection package?

2 Answers  


explain copyonwritearraylist and when do we use copyonwritearraylist?

0 Answers  


Is binary a low level language?

0 Answers  


What is treeset in java collection?

0 Answers  


How do you find the maximum number from an array without comparing and sorting?

0 Answers   BlackRock,


What is basic syntax?

0 Answers  


Write the algorithm to check the number non-leaf nodes in a tree.

0 Answers   Amdocs,


how to run ecllipse with jettyserver for windows environment using batch file

0 Answers  


why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?

3 Answers  


In a container there are 5 components. I want to display all the component names, how will you do that?

0 Answers  


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

0 Answers  


Categories