if in finalized method, there is a call to super(), then handle the throwable in the finalize method of the class, as the finalize of Object class throws Throwable.… more →
Krishnamoorthy's Blogvinu76jsr wrote 1 year ago: K & B, SCJP 5 – Errata: Updated 7/28/06 (Programmer Certification (SCJP) forum at JavaRanc … more →
vinu76jsr wrote 1 year ago: JavaRanch FAQ : Scjp Faq What are some potential trips/traps in the SCJP exam? * Two top-level publi … more →
Krishnamoorthy Sethuraman wrote 3 years ago: if in finalized method, there is a call to super(), then handle the throwable in the finalize method … more →
Krishnamoorthy Sethuraman wrote 3 years ago: StringBuffer sb = “hello”; this won’t compile. StringBuffer have to be explicity c … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Not possible to access methods of private inner class as the following code will give compile error. … more →
Krishnamoorthy Sethuraman wrote 3 years ago: For %b(boolean) : All data types can be passed For %c(char) : byte, char, short, int For %d(int) : b … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Advantages of encapsulation: Reusability of code Code Clarity … more →
Krishnamoorthy Sethuraman wrote 3 years ago: enum declaration outside class cannot contain static, final or any access modifiers, although enum t … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Object equals checks both objects are of same type and their contents are equal. In case of Float/Do … more →
Krishnamoorthy Sethuraman wrote 3 years ago: In a arrayList of object, any types of object(mixed) can be put. However in an array of objects, onc … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Benefits of Cohesion: Helps understand what a class or method does Allows the use of descriptive nam … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Recursive call in constructor will cause a compile time error: “recursive constructor invocati … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Following modifiers cannot be used with abstract: private final static native synchronized … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Jdeveloper being slow when shifting the application in windows. Reason being the windows swapping th … more →
Krishnamoorthy Sethuraman wrote 3 years ago: 1.using packaged class in non-packaged or packaged class: Need to use import. 2.using non-packaged c … more →
Krishnamoorthy Sethuraman wrote 3 years ago: synchronization possible on objects only and not on primitives int x; synchronized(x) will be compil … more →
Krishnamoorthy Sethuraman wrote 3 years ago: When class implements two or more interface(or extends classes) containing same member varaible type … more →
Krishnamoorthy Sethuraman wrote 3 years ago: Anonymous arrays have to be assigned to the variables at the time of declaration of varaible itself. … more →
Krishnamoorthy Sethuraman wrote 3 years ago: The code int i = 0; i = i++; System.out.println(i); produces the output “0″ instead of … more →