static = applies to all objects made
final = non modifiable (constant)
so…static final means it will be shared among all objects made from the class. Because its final, the objects can not change this variable once it is initialised. Im guessing this would be useful for equipment such as … pi? In a maths program you might declare pi and make it static final as it is not something that changes, and applies to a number of equipment within maths
bucky you could have also referenced your main method for a example, since all java programs run main method first, its a static method which doesnt need a object so it can run.
not a excellent example for class varable
does any one tell me what mean
public static final int kk=4;
is it static/
i reckon it constant
plz answer me at
skype/googlr talk =hmk25061984
it took me minutes to know what u lecture, but at the Uni , it is longer.
i got 4 errors saying: Cannot instantiate the type tuna =(
For som reason when i close the project then try to open it i get an xml error why is that ?
Who’s sharp thought was it to make Random class’s methods non static?
@xXMikeScottXx
Pi is built in java.
Try Math.PI
bucky is the best………..
SUPERHERO STATIC SHOCK. lol when static is mention static shock comes to my mind.
Well done bucky…
Constructor
watch the next tutorial and it should be clear.
static = applies to all objects made
final = non modifiable (constant)
so…static final means it will be shared among all objects made from the class. Because its final, the objects can not change this variable once it is initialised. Im guessing this would be useful for equipment such as … pi? In a maths program you might declare pi and make it static final as it is not something that changes, and applies to a number of equipment within maths
bucky you could have also referenced your main method for a example, since all java programs run main method first, its a static method which doesnt need a object so it can run.
not a excellent example for class varable
does any one tell me what mean
public static final int kk=4;
is it static/
i reckon it constant
plz answer me at
skype/googlr talk =hmk25061984
thanks
Static variables are known as Class variables btw.
Thanks! =D
Thanks!
Nice trick!
BOING!!!!!!!!!!!!!
TWELTH!
11′th i estimate
9th
8th!
7th!
6TH
FIFTH!
FOURTH!