Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between public static final and public final

 
damodar kumar
Ranch Hand
Posts: 77
Android Chrome MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Please provide the information on

Difference between public static final and public final

Regards,

Damodar
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The one uses the 'static' modifier and the other doesn't.

Do you know what the 'static' modifier does, do you?

This question in fact belongs in the Java for Beginners forum. It's covered by every basic Java tutorial, starting here:
http://google.com/search?q=static+tutorial+site:sun.com
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/variables.html
http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic