Java Advance Programming Concept