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 example of derived data types.
What do you mean by buffering?
What is difference between call by value and call by reference?
What is a default constraint?
What is string pool in java?
What is a function in java?
Can you explain the meaning of aggregation and composition
What is a boolean output?
How to convert string to char and vice versa?
Explain the difference between association, aggregation and inheritance relationships.
What is the protected method modifier?
What is string in java is it a data type?
How java uses the string and stringbuffer classes?
What is a protected void?
Does string isempty check for null?