aspose file tools*
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
Author

boolean

Hasitha Randika
Ranch Hand

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

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
Hi

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;

b.booleanvalue();

It retursn true or false

Check and tell me.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3355

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: boolean