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

How do you create a sop?

992


Difference between concurrent hashmap and hashtable and collections

1052


Explain different ways of creating a thread. Which one would you prefer and why?

1028


What is the purpose of format function?

1153


Which are different kinds of source code?

1103


Are private methods final?

901


What is the benefit of using enum to declare a constant?

1099


How is string stored in java?

1057


What will be the output of round(3.7) and ceil(3.7)?

1117


What are different ways of object creation in java ?

1070


What is stored procedure. How do you create stored procedure ?

1942


Explain super keyword in java.

1030


Is java written in c?

953


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

2259


Is array size fixed in java?

975