Answer Posted / madhu
public class MainClass {
public static void main(String[] args){
ClassLoader classLoader = MainClass.class.getClassLoader();
try {
Class aClass = classLoader.loadClass("com.tech.MyClass");
System.out.println("aClass.getName() = " + aClass.getName());
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is meant by pass by reference and pass by value in java?
Is lambda functional programming?
What is a stream in programming?
Explain daemon thread.
What is a uint8?
What is java persistence api used for?
What do you understand by a variable?
Do I need jdk or jre?
What is @override annotation in java?
What is a stream in java?
What is loose coupling in java?
What is the difference between deep copy and shallow copy in java
What is jersey in java?
What is the difference between Logical Parallelism and Physical Parallelism?
What is the locale class?