Interface constant declaration example in Java's SDK -
is there example of interface in java's built-in library (jdk) contains constant field?
from documentation, constant declaration can defined in interfaces, can't remember seeing such.
public interface operatecar { // constant declarations, if ... }
for example
package java.text; public interface characteriterator extends cloneable { /** * constant returned when iterator has reached either end * or beginning of text. value '\\uffff', "not * character" value should not occur in valid unicode string. */ public static final char done = '\uffff';
but generally, hard find constants in jdk interfaces, since not fit language convention.
Comments
Post a Comment