- It is better to use static variable then use instance variable.
- Constants variable should be declare as static final variable
- Local variable is accessed faster than global variable
public static final byte[] PARAMETER = { 'P', 'a', 'r', 'a', 'm', 'e', 't','e', 'r', ' ', ':', ' ' };
public final static byte[] PROTOCOL = { 'P', 'r', 'o', 't', 'o', 'c', 'o', 'l', ':' };
No comments:
Post a Comment