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

Answers were Sorted based on User's Feedback



how to call one program .class file in another program..

Answer / surender

By creating instance of the .class file we can call it from any other program

Is This Answer Correct ?    27 Yes 2 No

how to call one program .class file in another program..

Answer / divya

By creating instance of the .class file we can call it from
any other program.

Is This Answer Correct ?    16 Yes 2 No

how to call one program .class file in another program..

Answer / amit

by making package we can include one call in other program

Is This Answer Correct ?    7 Yes 1 No

how to call one program .class file in another program..

Answer / 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

how to call one program .class file in another program..

Answer / kajalpreet kaur

by making an object of .class file,we can use it in other program.

Is This Answer Correct ?    1 Yes 0 No

how to call one program .class file in another program..

Answer / 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

how to call one program .class file in another program..

Answer / rakesh

one answer in now proceeding after another file also use
the program

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

0 Answers  


Why is string class considered immutable?

0 Answers  


What is class forname used for?

0 Answers  


Is java a security risk?

0 Answers  


What do you mean by platform independence? What is an interface?

0 Answers  


Explain the difference between call by refrence and call by value?

0 Answers  


Difference between == and .equals() ?

0 Answers  


how can you say that java is independ language

2 Answers   TCS, Wipro,


Can you add null to a list java?

0 Answers  


I have 2 objects inside one object(vector). how can i serialize one of them. I dont want to serialize the second one

3 Answers   ABC, L&T,


What is the use of singleton class?

0 Answers  


What are inbuilt functions in java?

0 Answers  


Categories