package test;
class Test{
static { System.out.println("Test Class");}
}
public class TestDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
Class.forName("test.Test");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("Couldn't find Test");
}
}
}
class Test{
static { System.out.println("Test Class");}
}
public class TestDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
Class.forName("test.Test");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
System.out.println("Couldn't find Test");
}
}
}