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 meant by final class, methods and variables?

Answers were Sorted based on User's Feedback



What is meant by final class, methods and variables?..

Answer / narasimha

when you declare a class as final, that class cannot be
extended.In java "String" class is final.

when you declare the variable as final then we can
intialize it only once.it is constant.

when declare the method as final we cannot override the
method

Is This Answer Correct ?    12 Yes 0 No

What is meant by final class, methods and variables?..

Answer / ravikiran(aptech mumbai)

final class:Is the one which cann't be subclassed
final method:Is the one which cann't be overrided
final variable:is the one which acts like a constant

Is This Answer Correct ?    12 Yes 1 No

What is meant by final class, methods and variables?..

Answer / suresh chand

final class: we can't inherit that class

final method: we can't override that method

final variable: we can't change the value of that var.

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More Core Java Interview Questions

How do you convert int to char in java?

0 Answers  


What are daemon Threads in java?

0 Answers   Impetus,


Difference between abstract and concrete class ?

0 Answers  


Why transient variables wont participate in serialization?

2 Answers  


Differentiate between overriding and overloading cases?

0 Answers   Amdocs,


What is the difference between hashset and treeset in java?

0 Answers  


Explain different states of a thread in java?

0 Answers  


How OOPS concept is achieved in Java?

6 Answers   Cognizant, JPMorgan Chase, Xavient,


Are functions objects in java?

0 Answers  


What is difference between hashset and hashmap?

0 Answers  


How will you print number in reverse (descending) order in BST.

0 Answers   GrapeCity,


What are the approaches that you will follow for making a program very efficient?

0 Answers  


Categories