how to call one program .class file in another program
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / amit
by making package we can include one call in other program
| Is This Answer Correct ? | 7 Yes | 1 No |
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 |
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 |
Answer / rakesh
one answer in now proceeding after another file also use
the program
| Is This Answer Correct ? | 0 Yes | 0 No |
How does static modifier work?
justify c is portable
What is stack class in java?
What are three ways in which a thread can enter the waiting state in java programming?
what is difference between Interface and abstract class
How do I convert a string to an int in java?
What is run time allocation?
Name few java 8 annotations ?
What is the purpose of the system class in java?
if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...
What are the types of strings?
How do you override a method in java?