+ 3
Is java a space sensitive programming language?
Sometimes during tutorials I observe that there is inconsistency in spacing for statements. For example, sometimes it's written as int x=0; while for the rest it's written as int x = 0; . Does the spacing matter?
3 Answers
+ 5
No! it's optional
+ 3
Follow the language code conventions, if you want your code to be read by real programmers.
+ 1
Usually you use a code formatter which formats the code according to the code conventions. So you do need to care about adding white space or not.