Explain java coding standards for variables ?



Explain java coding standards for variables ?..

Answer / Ghanshyam Tiwari

"Java coding standards for variables include using meaningful names that clearly describe their purpose, using camelCase naming convention (e.g., variableName), initializing all instance variables in a class constructor, making instance variables private and providing getter and setter methods for them, and avoiding using global variables whenever possible."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What an i/o filter?

1 Answers  


How can u create the Object of class Without using "New" opertor?

3 Answers   IBM, TCS,


What are the concepts of 'OOPS'?

1 Answers   Atos Origin,


Which package is always imported by default?

1 Answers  


How many unicode characters are there?

1 Answers  


What is the method to declare member of a class static?

1 Answers   HCL,


If two threads have same priority which thread will be executed first ?

1 Answers  


Can one thread block the other thread?

1 Answers  


How large is a boolean?

1 Answers  


What is io stream in java?

1 Answers  


what is the use of thread?Justify it by project point of view

7 Answers  


What is the meaning of find and replace?

1 Answers  


Categories