• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

boolean

 
Hasitha Randika
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the differant between
boolean b;
&
Boolean b;
 
Kiran Tarte
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
boolean is a primitive type and
Boolean is a wrapper class
 
krishnamoorthy kitcha
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic