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 boolean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "boolean" Watch "boolean" New topic


Hasitha Randika
Ranch Hand

Joined: Sep 04, 2007
Posts: 50
what is the differant between
boolean b;
Boolean b;
Kiran Tarte

Joined: Jun 25, 2007
Posts: 16
boolean is a primitive type and
Boolean is a wrapper class
krishnamoorthy kitcha
Ranch Hand

Joined: Feb 04, 2006
Posts: 96

boolean is primtive Data type

Where as Boolean is the object that's belong to Wrapper Class .

We will use to type Case the Wrapper class to primtive

boolean returns true or false

Suppose you are using Boobelan b =(Boolean) obj;


It retursn true or false

Check and tell me.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3381

Howdy Hasitha_Randika ,

Hope you got the answer for your query.

I think you may have to please adjust your display according to the JavaRanch Naming Policy. It insists to have the first name and last name separated by a space. And the names should not be fictitious.

You can do so by editing your profile. In your case you can just remove the "underscore" in between your two names.
[ September 11, 2007: Message edited by: Raghavan Muthu ]

Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
I agree. Here's the link:
subject: boolean
It's not a secret anymore!