IT Community - Software Programming, Web Development and Technical Support

Difference between static and final in java

This is a discussion on Difference between static and final in java within the Java Programming forums, part of the Software Development category; Difference between static and final in java...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-09-2007, 04:10 AM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Default Difference between static and final in java

Difference between static and final in java
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-19-2007, 03:49 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Default Re: Difference between static and final in java

Static" means associated with the class; "final" means unchangable.

Language Basics: Final Variables
The value of a final variable cannot change after it has been initialized.

Classes and Inheritance: Understanding Instance and Class Members
The runtime system allocates a class variable (static) once per class, regardless of the number of instances created of that class.

-V.Vadivelan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-20-2007, 06:46 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: Difference between static and final in java

Static Variables and Methods dont need the Instance(Object),

We can call through their Class name itself

Final means Constants
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between static and final in java leoraja8 Java Programming 2 08-17-2007 05:49 AM
Difference between enumeration and iterator in java? kingmaker Java Programming 3 08-08-2007 03:53 AM
Static Global Variable and Static Local Variable vigneshgets C and C++ Programming 1 05-30-2007 11:50 AM
difference between a static and a non-static inner class vigneshgets Java Programming 1 05-23-2007 11:02 PM
Java Static swoosh Java Programming 3 05-08-2007 04:36 AM


All times are GMT -7. The time now is 11:35 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0