constant is does not change the value of during the excution of program
variable it changes the value during the excution of program
Variables can be changed. Constants (declared with the reserved word final) cannot be. They are typically all capitalized.
example: final int FREEZING_POINT=32;
difference between constant and static variables in java
An interface can only have abstract methods or constants in it. A class can have both that and everything else in Java.
A variable is a memory address that holds a value. A constant is simply a variable that does not change value.
The Math class has public variables - defined as final, of course - for the mathematical constants PI and E.
Java does not have the concept of Reference Variables. We cannot access the memory location where the data is stored in Java.
Without variables, you won't be able to do much programming. Variables is where you store data; such data may change over time. And computer programming is all about manipulating data.
They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.
In Java toUppercase() is a method of the class String: https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#toUpperCase()
Java is object oriented, C is not...
kamina
kamina
Unix is an operating system, Java is a language.