What is the equivalent to Python\'s pass
in Java? I realize that I could use continue
or not complete the body of a statement to achieve that effec
There is no (strict) equivalent since in java you have to specify the return type for the method in its declaration which is then checked against a computed type of the following the return statement. So for methods that have a return type - neither semicollon nor leaving empty braces will work;
I personally use: throw new java.lang.UnsupportedOperationException("Not supported yet.");
- this is searchable, alerts you that the method is not implemented and is compatible with the strict return types.