Friday, 6 September 2013

Simple java issue: object declaration

Simple java issue: object declaration

JFrame frame1 = new JFrame();
If I declare frame1 by doing JFrame frame1; is the "JFrame the type of
object or is it something else? What does JFrame do, why cant I omit it?

No comments:

Post a Comment