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


Please Help Members By Posting Answers For Below Questions

Give me example of derived data types.

842


What do you mean by buffering?

767


What is difference between call by value and call by reference?

710


What is a default constraint?

817


What is string pool in java?

763


What is a function in java?

768


Can you explain the meaning of aggregation and composition

758


What is a boolean output?

720


How to convert string to char and vice versa?

730


Explain the difference between association, aggregation and inheritance relationships.

810


What is the protected method modifier?

781


What is string in java is it a data type?

737


How java uses the string and stringbuffer classes?

737


What is a protected void?

702


Does string isempty check for null?

774