Should we keep 80 characters per line in Java?

Viewed 20939

There are lots of websites or blogs said that we should keep 80 characters per line in our program since it is relatively to display in some console environment.

However, I found that it is very hard to keep this practice in Java. When we write Java code, we write a function in a class, it requires us to do some indentation already, let alone to add a few if-else statements inside the function.

Apart from that, we always keep call functions in a object. Such kind of behavior make that it is hard to make 80 characters per line.

Wrapping the line is a method, but it decrease the readability of the code.

I am not a professional java programmer. Would you still follow this rule when writing Java? or is there common practice on the indentation of java?

2 Answers
Related