Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Naming convention for properties in property file

What are the naming conventions for property names defined in properties files in Java? Can I use uppercase or only lowercase?

For example: bankAccountNumber or bank.account.number?

Is it defined somewhere on the internet?

like image 382
MrProper Avatar asked Sep 18 '12 08:09

MrProper


People also ask

In which format we are writing data in properties file?

Storing properties file in XML format You can store the properties file in XML format using the stored XML() method.

What is in properties file?

properties file is a simple collection of key-value pairs that can be parsed by the java. util. Properties class. Properties files are widely used for many purposes in all kinds of Java applications, often to store configuration or localization data.


1 Answers

Naming convention is recommended as lowercase in property file. bank.account.number this is more appreciable.

like image 95
Subhrajyoti Majumder Avatar answered Oct 04 '22 19:10

Subhrajyoti Majumder