TextComponent tc=new TextComponent();
//compile error: no constructor matching TextComponent()found in
//java.awt.Textcomponet
I checked
Java API and found out that there is no constructor listed for TextComponent. Just as there is no construtor listed for java.lang.Math class.
Does that mean TextComponent also has private constructor, so it can't be instantiated?
If the API doesn't list constructor for a class, that class has private construtor?
Thanks.