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
What is an immutable class?
How many bytes is a string java?
What is local declaration?
How big is a gigabyte?
Is zero a natural number?
Write a method to check if input string is palindrome?
What should I import for arraylist in java?
Can we have more than one package statement in the source file?
Is it possible to use string in the switch case?
How can you set the applet size?
What will happen if static modifier is removed from the signature of the main method?
What is this keyword in java?
How do you represent a space in regex java?
What is java lang string?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.