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
What checkbox method allows you to tell if a checkbox is checked?
What is a jagged array in java?
why java uses class level type casting ?
What is argument in java?
What are synchronized blocks in java?
How do you define a parameter?
What is internal variable?
What is a programming object?
Do I need java on my computer?
What is method overloading and method overriding?
What is structure of java heap? What is perm gen space in heap?
What is vector?
What is return type in java?
Why call by value prevents parameter value change?
What is a null point?