Overriding v/s Hiding

Many people have heard that you can’t override a static method. This is true – you can’t. However it is possible to write code like this: class Foo { public static void method() { System.out.println(“in Foo”); } } class Bar extends Foo { public static void method() { System.out.println(“in Bar”); } } This compiles and … Read more

Java Programming Style Guide

Introduction The Java language gives you all the room you need to write code that would be very difficult for others to understand. Java also permits you to write code that is very easy to understand. Most development teams would prefer the latter. A style guide provides provides a map so that the code generated … Read more

%d bloggers like this: