Categories

Jun 16, 2019 in JAVA

Q: What are constants and how to create constants in java?

Constants are fixed values whose values cannot be changed during the execution of program. We create

constants in java using final keyword.

Ex : final int number =10;

final String str=”java-interview –questions”

1 Answer

Jun 17, 2019

Constants are fixed values whose values cannot be changed during the execution of program. We create

constants in java using final keyword.

Ex : final int number =10;

final String str=”java-interview –questions”

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

Madanswer
Jun 17, 2019 in JAVA
Jun 16, 2019 in JAVA
Jun 17, 2019 in JAVA
...