Conversion vs cast
From: Razvan (mihai11_at_mailcity.com)
Date: 09/30/04
- Next message: Michael Borgwardt: "Re: Conversion vs cast"
- Previous message: Babu Kalakrishnan: "Re: Change Look & Feel in open JFrame s & JDialog s"
- Next in thread: Michael Borgwardt: "Re: Conversion vs cast"
- Reply: Michael Borgwardt: "Re: Conversion vs cast"
- Reply: Babu Kalakrishnan: "Re: Conversion vs cast"
- Reply: Phillip Lord: "Re: Conversion vs cast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Sep 2004 07:08:44 -0700
Hi !
boolean bb = true;
This code is OK:
String ii = "" + bb;
and this one fails to compile:
String ii = "" + (String) bb;
Isn't the first version just casting the bb to String ?
Regards,
Razvan
- Next message: Michael Borgwardt: "Re: Conversion vs cast"
- Previous message: Babu Kalakrishnan: "Re: Change Look & Feel in open JFrame s & JDialog s"
- Next in thread: Michael Borgwardt: "Re: Conversion vs cast"
- Reply: Michael Borgwardt: "Re: Conversion vs cast"
- Reply: Babu Kalakrishnan: "Re: Conversion vs cast"
- Reply: Phillip Lord: "Re: Conversion vs cast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]