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
How are java objects passed to a method and what are native methods?
Difference between class#getinstance() and new operator ?
What is boolean query?
What is final variable?
What is classes in java?
When should a function throw an exception?
Can private class be inherited in java?
Java.util.regex consists of which classes?
What do you mean by constant time complexity?
What are the loops in java?
What is scope & storage allocation of global and extern variables? Explain with an example
What is object cloning in Java?
Difference between ‘>>’ and ‘>>>’ operators in java?
Is string is a class in java?
What about interrupt() method of thread class ?