
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Advantages of Naming Conventions in Java
Following the the best practices while declaring a variable. These best practices maintains code readability, understandability as project code size increases.
- Variables names should be short or long enough as per the scope. For example, loop counter variable, i is fine whereas employee as loop variable.
- Specific words should not be used like equals, compare, data.
- Use meaningful names which can explain the purpose of the variable. For example cnt Vs counter.
- Don't use _ to declare a variable name, Use camel casing. For example, employeeName is better than employee_name.
- Each organization has its own syntax specific standards. Follow those rules to maintain consistency and readability.
Advertisements