This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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 />但使龙城飞将在, 不教胡马度阴山!
subject: can anyone explain output
Similar Threads
Brodgen's Exam Cram:- Sample Test :- Page:- 310. Q.6
Static method call from non static method
Rules for constructors - p. 316 from Bert and Kathy's book
Threads - Bill Brodgen