I am learning Java I have encountered these two very strange classes. Normally a class let say class JFrame
will have its object created as such
JFrame app = new JFrame();
Now look at the object of class String
it is declared as
private String name;
I mean this is like declaring a primitive type variable, why so?
Now look at the object of class System
it’s written as
System.out
I mean this is like a static variable. I would like to know more what is going on with these two classes? Why so unique?
10