Why v use + in system. Out.println
Its a class system in which out and println are the objects...
Println -> will print the next command in nxt line
Print -> will continue to print the command in the same line
Tip: whenever we use '.' It means we are calling some method using some objects
To give space in ur ans
Sorry, I mean the "Concat" operator ;)
Course it is the cancat operator for your string output. Example:
System.out.println("I say hello " + (1 + 1) + " my friend.");
In the middle of that two strings is a addtition of two numbers. The result is concatenated with the first string and after this, there is a second concatination with the second string.
The output is pure string.
"I say hello 2 my friend."