File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes can anyone explain output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "can anyone explain output" Watch "can anyone explain output" New topic

can anyone explain output

sun par
Ranch Hand

Joined: Oct 03, 2002
Posts: 257

Why is there an error in 1

Sunita<br />SCJP 1.4
Alfred Kemety
Ranch Hand

Joined: Aug 14, 2002
Posts: 279
addWidget() is declared static, you can't reference instance variables (wName) from within a static block

Alfred Raouf - Egypt - SCJP 1.4<br />Kemety.equals(Egyptian) // returns true
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
When compiling (after correcting a few typos) you should get the following message from the compiler:

The message speaks for itself

[Blog] [Blogroll] [My Reviews] My Linked In
Keen Chen
Ranch Hand

Joined: Nov 12, 2002
Posts: 47
so many errors in ur code

SCJP 1.4 100% @ Peking, China <br />~~~~~~~~~~~~~~~~~~~~~<br />但使龙城飞将在, 不教胡马度阴山!
I agree. Here's the link:
subject: can anyone explain output