Well...you're looking at the wrong symbol. The short answer is, "it depends."
In Java, there are two types of things:
- primitives, which only hold a raw numerical value (in the case of
char
, often capable of being printed out), and
- objects, which can not only hold values, but also perform method calls and access instance information.
data
is actually a byte[]
, and array types are special in that they are an Object
, but not the instance of a class. That said, there are a few things that it has - clone()
, since arrays implement Cloneable
, and all of the methods that are found on Object
, which it inherits from.
In essence, you can call methods only on objects, but not primitives.