![]() |
|
#1
|
|||
|
|||
What's nature of final constantsIt's well known that ihis code will generate error
JAVA Code:
because a+b OR a+5 is implecitely converted to int type,and this value is being assigned to short type. Look at the code below JAVA Code:
|
|||
|
#2
|
|||
|
|||
Re: What's nature of final constantsQuote:
When you use the final keyword, it prevents the variable from being changed, in either type or value throughout the rest of the program. Justin Fox |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Harry Potter and the Deathly Hallows - The Final Book Free | Nyyphon | Member Announcements, Advertisements & Offers | 0 | 25-Aug-2007 06:42 |
| Seems Final update | seohp | Open Discussion Forum | 0 | 28-Apr-2007 13:55 |
| D3D error when running fullscreen games/programs - help?! | daa709 | Computer Hardware Forum | 4 | 01-Jul-2005 08:03 |
| What's happening to nature? | priyanka | Open Discussion Forum | 7 | 30-Oct-2004 12:58 |
| Socrates the final moments.. | paulselhi | Open Discussion Forum | 0 | 13-Feb-2004 08:24 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The