This is a discussion on Difference between static and final in java within the Java Programming forums, part of the Software Development category; Anybody Send the answer to Difference between static and final in java...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Both are modifiers to use indicate class members and constant members respectively. Note that a constant can be either a class (static) or an instance member. static: If a field is declared static, there exists exactly one incarnation of the field, no matter how many instances (possibly zero) of the class may eventually be created. A static field, sometimes called a class variable, A field that is not declared static (sometimes called a non-static field) is called an instance variable. final: the keyword final use to define constants of various primitive types |
| |||
| Hi, Java and C# are based on OOPS concepts.. I think that static and final keyword is same in C# also.. Is there any variations and any difference in it rather than that above mentioned points in C#...
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily Last edited by krishnakumar : 08-17-2007 at 05:53 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between enumeration and iterator in java? | kingmaker | Java Programming | 3 | 08-08-2007 03:53 AM |
| Difference between static and final in java | leoraja8 | Java Programming | 2 | 07-20-2007 06:46 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 |