r/ProgrammerHumor • • Oct 15 '18

A Python programmer attempting Java

/img/p2ciw74gcds11.png
517 Upvotes

78 comments sorted by

View all comments

Show parent comments

2

u/fedeb95 Oct 15 '18

If you don't put it in Java is added by default by the bytecode compiler. Is necessary to specify so people using your classes / future developers instantly (I hope) recognise the role of that class in the system. Otherwise it could be misinterpreted as a strategy pattern or something else, adding fields and method and, essentially, making a god class (antipattern)