Dodo Tales: if(true) Lies...?

I always wonder, if java worries more about syntax and semantics, Why

if (true);

is considered to be a valid syntax in Java? Why don't the Compiler complain this? what does this line signify?

No comments:

Tired of seeing that 500 Bad gateway error while deploying a Springboot application in AWS...?

By default, Spring Boot applications will listen on port 8080. Elastic Beanstalk assumes that the application will listen on port 5000. Th...