Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do you use final keywords and final variables in Java?

Answer Posted / nashiinformaticssolutions

Java programmers are unable to alter the value of variables of basic data types when they use final keywords with them.
When final is used with non-primitive variables, the members of the referred object cannot be altered.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the difference between applets and standalone program?

1047


What is difference between identifier and variable?

1064


What java ide should I use?

992


What is the purpose of static methods and static variables?

1071


Define array. Tell me about 2-D array.

1050


Variable of the boolean type is automatically initialized as?

1010


What are the uses of synchronized keyword?

1001


What is a variable analysis?

1088


What is meant by attribute?

1126


Can we have more than one package statement in the source file?

1058


Why synchronization is important in java?

1044


How are java objects passed to a method and what are native methods?

1081


Which is fastest collection in java?

1081


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

988


How to obtain a performance profile of java program

1034