Untitled Document

Subscribe here to get updates on new Videos


10. Explain about System.out.println(); ?




previous homenext



class Test
static String s=”java”;

Test . S. length();

Test is a class name

‘S’ is a static variable present in Test class of type String.

length() is method present in String class.

class System
static PrintStream out;


System is class present in java.lang package

‘out’ is a static variable present in system class of type PrintStream

Println() is a method present in PrintStream class.