In java System is a class. But in println function is used without using any object. Why? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

In java System is a class. But in println function is used without using any object. Why?

12th Mar 2018, 3:17 PM
அபிஷேக் அபி
3 Réponses
+ 9
System.out.println() System - class out - object println() - function more info : https://stackoverflow.com/questions/16590651/does-the-system-out-object-belong-to-class-system-or-class-printstream
12th Mar 2018, 3:44 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 7
Are you referring to this: System.out.println(); ?? If so, that will move the console to the next line. So, System.out.println(); System.out.println("Hi!"); 'Hi!' will be placed on the 2nd line in the console.
12th Mar 2018, 3:44 PM
Rrestoring faith
Rrestoring faith - avatar
+ 3
yes I am referring that
12th Mar 2018, 4:06 PM
அபிஷேக் அபி