I just found my compiler allowed me to write below code and did not raised any compile time error. Could anyone please enlighten me!
double y = arcToFindPointOn.getCenterXY().y - arcToFindPointOn.getRadius()*Math.sin(theta);;
Weird thing about above code line is semi-colon at the very end!
Thanks!
in other languages as well, like C# and C++, having an instruction with only
;means empty instruction and is allowed, generates no errors and simply does nothing.plenty of articles on this online, found this one: Multiple semicolons are allowed by the C# Compiler for statement termination