Why this java code has written this way?

Printable View