Just asking if I have the right understanding
System.out.println();
System is the package out is the class println() is the method
If t
No,
System
is the class, which resides in java.lang
package (that's why you don't need to import it).out
is a static variable of System
class. It is public, so that you can access it from outside and it is static so that you it's associated to the class declaration and not to any instance of it.println()
is a method, indeed. And it is a method of out
variable, which is a PrintStream
instance.