refer Java API and Java specification on oracle website to understand.