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 / sudarshan kumar

public class Hello{
int a=5;
void sum(){
int s=a+10;
System.out.print("\n sum :: "+s);
}
}

class Client{
public static void main(String x[]){
Hello h=new Hello()
h.sum();
}
}

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What checkbox method allows you to tell if a checkbox is checked?

1052


What is a jagged array in java?

1180


why java uses class level type casting ?

2703


What is argument in java?

1058


What are synchronized blocks in java?

1277


How do you define a parameter?

1088


What is internal variable?

1067


What is a programming object?

1184


Do I need java on my computer?

1022


What is method overloading and method overriding?

1110


What is structure of java heap? What is perm gen space in heap?

1185


What is vector?

1124


What is return type in java?

1126


Why call by value prevents parameter value change?

1125


What is a null point?

1153