top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the different Java Coding Conventions ?

+2 votes
50 views
What are the different Java Coding Conventions ?
posted Dec 29, 2014 by Shyam

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

different Java Coding Conventions

Packages – Name should be nouns in lower case. Eg: package com.study

Class – Name should be nouns with the first letter capitalized. Eg: Person

Interfaces - Name should be nouns with the first letter capitalized. Eg: interface Employee

Methods – Name should be verbs with first letter in lower case. If multiple words are used start of other words should be capitalized. Eg: employee_Attendance()

Variables - First letter in lower case. If multiple words are used start of other words should be capitalized. Eg: employee_Age

Constants – All the letter should be Capitalized. Eg: MAX_EMPLOYEE_COUNT

answer Dec 30, 2014 by Karthick.c
...