answersLogoWhite

0

yes use the final keyword, normally variables declared final use all capital letters but this is not required

final int A = 10;

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Is unsigned integer available in java?

No..Java Supports Signed positive and negative integers


Why java does not support unsigned integers?

Java does not support unsigned integers primarily to maintain simplicity and consistency in its type system. The language designers aimed to provide a clear and straightforward model for numeric types, and including unsigned integers would complicate the arithmetic and bitwise operations. Additionally, Java's focus on portability and cross-platform compatibility means that avoiding unsigned types helps prevent issues related to integer overflow and underflow across different systems. As a result, Java provides a signed integer representation, which is sufficient for most programming needs.


Is unsigned int var valid in java?

No. Java uses no unsigned numbers.


Does java supports unsigned data types?

No, in Java, only signed numbers are defined.


What is the purpose of integer Java?

Within Java, an integer is an Object, which is converse to the "int", which is a primitive. In reality, this means that for an integer, a method can be called upon it, whereas with a primitive, this is not the case.


What is java's keyword for the integer data type?

"int" is the keyword for integer


Can you do a boolean test on integer in java?

No


What is the Java integer class used for?

The Java Integer class is there to help with math. It is very useful and very recommended. To learn more information about it, go to the official Java page.


What is a simple java code and explain what the code does?

int a;This simple Java statement declares an integer.


What is a int in java?

int is integer which means datatype


How do you set the constant textarea in java?

we can set the value of constant text area in Java in swing by creating a object of Jframe


What are the constructor method of integer class?

If you mean Java, you can get the documentation for the Integer class (with an uppercase "I") here: http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Integer.html