Results 1 to 1 of 1
Thread: Naming conventions
-
Naming conventions
Java has certain naming conventions which should be followed to make code readable for others.
- Package name is always written in all-lowercase.
- Class name begins with upper case letter.
- Interfaces begins with upper case letter.
- Variable name/Method name begins with lowercase letter and the first letter of each internal word should be capitalized.
- Constants are in upper case.
Java Code:package test; public class Test { public static final int FACTOR = 10; public static void testMethod() { } }
Similar Threads
-
Naming object instances
By oldgit in forum New To JavaReplies: 9Last Post: 02-07-2008, 11:18 PM -
Naming a Class
By Java Tip in forum Java TipReplies: 0Last Post: 12-22-2007, 11:21 AM -
RMI naming problem
By Robbinz in forum New To JavaReplies: 1Last Post: 12-06-2007, 11:32 PM -
namespace conventions from sun....
By money123 in forum New To JavaReplies: 3Last Post: 07-31-2007, 05:44 AM -
error in JNDI naming
By jitendra.ibs in forum Java ServletReplies: 0Last Post: 06-08-2007, 05:23 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks