About core java concept