my dog learned polymorphism*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why does this print true? 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 "why does this print true?" Watch "why does this print true?" New topic
Author

why does this print true?

Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531


Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

hint=>> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax

If the argument arg is null, then the result is "false". If arg is a boolean or Boolean, then the result is the string returned by String.valueOf(). Otherwise, the result is "true".


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531
thanks man
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

you are most welcome ;)
 
 
subject: why does this print true?
 
Similar Threads
Netscape7.1 and window.createPopup()
Why we live?
onload
input type=file
build.xml question