React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in JAVA by
Explain Java Coding Standards for Constants?

Constants in java are created using static and final keywords.

1) Constants contains only uppercase letters.

2) If constant name is combination of two words it should be separated by underscore.

14

3) Constant names are usually nouns.

Ex:MAX_VALUE, MIN_VALUE, MAX_PRIORITY, MIN_PRIORITY
Click here to read more about DevOps

1 Answer

0 votes
by

Constants in java are created using static and final keywords.

1) Constants contains only uppercase letters.

2) If constant name is combination of two words it should be separated by underscore.

14

3) Constant names are usually nouns.

Ex:MAX_VALUE, MIN_VALUE, MAX_PRIORITY, MIN_PRIORITY

Related questions

Madanswer
0 votes
asked Jun 16, 2019 in JAVA by reins.robin
0 votes
asked Jun 17, 2019 in JAVA by reins.robin
...