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 / glibwaresoftsolutions

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 do you mean by Hash Map and Hash Table?

1081


Explain importance of finally block in java?

1028


What are the uses of java?

1082


What is the program compilation process?

1102


Can we make constructors static?

1225


What is replacefirst in java?

1095


How can we make copy of a java object?

1142


Is 0 true or is 1 true?

957


What is the difference between yielding and sleeping?

1102


What is scope & storage allocation of global and extern variables? Explain with an example

1033


Can a static class have a constructor java?

974


Can we declare the main method of our class as private?

989


What is the use of default method in interface in java? Explain

995


How do you override a private method in java?

972


Why are there no global variables in java?

1041