how to call one program .class file in another program
Answer Posted / 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 |
Post New Answer View All Answers
Give me some null interfaces in java?
Can a class be final?
Which is the best sorting technique in java?
How can we pass argument to a function by reference instead of pass by value?
Can a serialized object be transferred via network?
What are internal and external variables?
Why do we need data structure in java?
What sorting algorithm does javascript use?
Is java ee a framework?
Is a boolean 1 bit?
What is java beans?
Is boolean a wrapper class in java?
What do you mean by chromounits in java8?
Explain the difference between string, stringbuffer and stringbuilder in java?
How do I start learning java?