Examples on various java concepts