console.log() v.s. System.out.println | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

console.log() v.s. System.out.println

When i first got into using Java, i was taught to display outputs using “console.log()” instead of “System.out.println” is there a difference and should i switch over? Edit: Thanks Lisa, I understand now that they’re 2 separate languages with different phrases for output.

25th Apr 2024, 11:40 AM
Joker
Joker - avatar
1 Answer
+ 1
Javascript and Java are 2 DIFFERENT LANGUAGES. Do not confuse Javascript and Java.
25th Apr 2024, 11:45 AM
Lisa
Lisa - avatar