Here is a confusing question – what does the next code prints? public static void doStam() { try { doExcption(); return; } finally { System.out.println(“Finally”); } } public static void main(String[] args)…
Category: Pure Java
Java Interface rules
Let’s start with a short Java question: Bellow you can see the interface ‘Test’. Which lines in that interface will be rejected by the compiler? The answer is: lines: 7,8,9,10 I am…
Create your own Java customized annotations
Annotations is a relatively new technology, it was added to the language in Java5. An annotation is a meta data that can be attached to a java class, member, function or a…