jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes what is the advantage of static final method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is the advantage of static final method?" Watch "what is the advantage of static final method?" New topic
Author

what is the advantage of static final method?

sampath soft
Greenhorn

Joined: Apr 13, 2007
Posts: 17
please any one can tell me advantage of using static final infront of the methods?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11152
    
  16

We'd prefer it if you'd show some effort. tell us what YOU think these words do, or what the advantages might be. any java book will tell you. Heck, if you searched this forum, you'd probably already have the answer.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
sampath soft
Greenhorn

Joined: Apr 13, 2007
Posts: 17
interviewer asked this question to me...(some java class having methods like this).
Gaurav Arora
Ranch Hand

Joined: Aug 13, 2007
Posts: 35
What Fred means is that you should try answering the question yourself first and then the rest of the community will explain to you why your answer is correct / incorrect. Moreover, you should always search for answers first on this forum before asking the same question. No one likes answering the same questions over and over.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is the advantage of static final method?
 
Similar Threads
Implemetinng the interface with all static final variables
Need clarification on serialVersionUID variable in java class.
Question about the assignments of static final variables
static methods
static variable