Simple Oop Program In Java