This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Boolean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Boolean" Watch "Boolean" New topic
Author

Boolean

Bart Wilson
Greenhorn

Joined: Aug 01, 2001
Posts: 17
If you have a return type Boolean what does this return, does it returns true/false like the primimtive boolean?
public java.lang.Boolean getIndicator()
{
return mIndicator;
}
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

It returns a Boolean class. The Boolean class is not the same as the boolean primate. There is a method on the Boolean class which returns true/false.


Please ignore post, I have no idea what I am talking about.
Bart Wilson
Greenhorn

Joined: Aug 01, 2001
Posts: 17
Figured it out the method is booleanValue()
Originally posted by christopher foran:
It returns a Boolean class. The Boolean class is not the same as the boolean primate. There is a method on the Boolean class which returns true/false.

 
 
subject: Boolean
 
Similar Threads
Boolean.valueOf(boolean) vs Boolean.valueOf(String)
javax.el.PropertyNotFoundException
underlying value of boolean "false", "true"
Another IO Question
general query