static String s=”java”;
Test . S. length();
Test is a class name
a static variable present in Test class of type String.
length() is method
present in String class.
static PrintStream out;
is class present in java.lang package
is a static variable present in system class of type PrintStream
is a method present in PrintStream class.