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
Which class should you use to obtain design information about an object in java programming?
How do I get 64 bit java?
Does string is thread-safe in java?
What is a qualifier in a sentence?
What is try-with-resources in java?
what is optional in java 8?
What are the methods available in a class?
What is a method in java?
Explain the difference between abstract class and interface in java?
What is static data type in java?
Where is stringbuffer stored?
What is a nested structure?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What are wrapper classes in java?
What is the latest version of java?