Hi,

Are there any conventions or best practices when using constant String
variables in Java?. I'm referring to the variable values, not the names.

Some examples I found are

    public static final java.lang.String HTTP_RESPONSE_STATE =
"axis2.http.response.state";
    public static final java.lang.String HTTP_BASIC_AUTH_REALM =
"axis2.authentication.realm";

    public static final java.lang.String SERVICE_OBJECT_SUPPLIER =
"ServiceObjectSupplier";
    public static final java.lang.String REQUEST_PARAMETER_MAP =
"requestParameterMap";

The first two appear to follow some convention, but the latter two seem to
be mere names.

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to