catch (Throwable e) {
// TODO Auto-generated catch block
e.printStackTrace();
throw e;
}
Does ExamLab match real exam difficulty level or i need to prepare a lot more ?
should i keep attempting more of these ExamLab test's and try to increase my scores and level ?
What should be the practice score so that we can confidently clear SCJP6 ?
If you closely observe your code, you are compiling class E and then trying to run class A. Thats why
its giving this issue. Another problem is, you should try to declare your class A public, rather then default
access.
folder. In command prompt go to this<your_jdk_path>/bin
folder and<your_jdk_path>/bin
A thread may acquire 2 or more Locks of synchronized methods/blocks. TRUE/FALSE
MyClass.class
.....
public static synchronized int getCount() {
return count;
}
public static synchronized int getCount2() {
return count;
}
.....
OR
MyClass.class
.....
public static int getCount() {
synchronized(MyClass.class) {
return count;
}
}
public static int getCount2() {
synchronized(MyClass.class) {
return count;
}
}