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...

What is the difference between Static and final?

Answer Posted / vetri

in variable,specifying final the value cant be changed
through
entire program.specifying static means the variable value
will persist between different method calls,automatic
initialization of static variable is zero.static and final
methods cant be overriden with non static or non final method.
but static and final methods can be overriden with static
and final methods in the subclass.

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope of a variable?

1156


How do you change an int to a string?

1060


How do you create immutable object in java?

1105


Why are parameters used in functions?

1078


What are the two basic ways in which classes that can be run as threads may be defined?

1130


What are the uses of java?

1140


Why is the type for real numbers called double?

1018


How do you create an array in java?

1036


What is the protected method modifier?

1089


what is anonymous class in java?

1094


What is the default value of an object reference declared as an instance variable?

1174


Explain constructors and types of constructors in java.

1186


What is mean by encoding?

1124


What is the difference between abstract class and interface1? What is an interface?

1135


What is the use of parseint in java?

1087