Is Line of code also Line of text?

67 Views Asked by At

I know this maybe a silly question I'm quite confuse about them, as I understand this example has 1 line of code and 2 line of text.

1. System.out.print("-----------
2. ----------------------------"};

Am I right or wrong?

1

There are 1 best solutions below

1
On

For java I usually define lines of code as the number of non-text semi-colons and right parenthesis.