The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

How memory allocation done for final Variables...

Posted by Ruchi and Hema on November 10, 2000 at 1:18 AM

hi..

we have Query about the memory allocation for final Variables..
when we write a code like this..

final int a =10;
byte b = a;

As the rule of Variable casting we need here excplicit cast
but this code complied successfully..and the value of b will be 10
Why this is occuring and How?

pls. anyone who knows the answer..explain us with variable memory alloction.

ThankX
Hema and Ruchi



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us