Top "Scjp" questions

SCJP is a certification for programmers experienced using the Java programming language.

Priority queue ordering of elements

How come the elements of priority queue are ordered according to natural order by default as it doesn't implement comparable …

java scjp
Are SCJP 6 and OCJP both same?

Are both SCJP 6 and OCJP 6 exams same? I am going to write OCJP 6 exam this month end but I am …

java scjp
Getting confused with == and = in "if" statement

I know that we cant use assignment operator in if statements in java as we use in any other few …

java compiler-errors scjp
ClassCastException because of classloaders?

While playing with classloaders i got the following exception: Exception in thread "main" java.lang.ClassCastException: xxx.Singleton cannot be …

java jvm classloader scjp
What does a bitwise exclusive OR do in Java?

Given: public class Spock { public static void main(String[] args) { Long tail = 2000L; Long distance = 1999L; Long story = 1000L; if ((…

java scjp
Does Arrays.BinarySearch require that the array is sorted in ascending order

According to the documentation: public static <T> int binarySearch(T[] a, T key, Comparator<? super T> …

java string oop scjp