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

What is an immutable class?

1078


How many bytes is a string java?

964


What is local declaration?

898


How big is a gigabyte?

989


Is zero a natural number?

974


Write a method to check if input string is palindrome?

963


What should I import for arraylist in java?

969


Can we have more than one package statement in the source file?

1021


Is it possible to use string in the switch case?

992


How can you set the applet size?

993


What will happen if static modifier is removed from the signature of the main method?

909


What is this keyword in java?

983


How do you represent a space in regex java?

957


What is java lang string?

942


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

883