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...

how to call one program .class file in another program

Answer Posted / jason

for the above class "Hello" ...
creating its '.class' file in another class is..

class DemoHello
{ p s v m(...)
{
Hello h=new Hello();
Class c=h.getClass();
sop(c);
}
}

=================
o/p:
class Hello

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are java objects passed to a method and what are native methods?

1068


Difference between class#getinstance() and new operator ?

1199


What is boolean query?

971


What is final variable?

934


What is classes in java?

934


When should a function throw an exception?

1029


Can private class be inherited in java?

1025


Java.util.regex consists of which classes?

986


What do you mean by constant time complexity?

1222


What are the loops in java?

976


What is scope & storage allocation of global and extern variables? Explain with an example

1029


What is object cloning in Java?

1098


Difference between ‘>>’ and ‘>>>’ operators in java?

1115


Is string is a class in java?

949


What about interrupt() method of thread class ?

1064