Which is the valid declarations within an interface definition?
Answers
Answered by
0
An abstract method within an interface
is followed by a semicolon, but no
braces (an abstract method does not
contain an implementation). Default
methods are defined with the default
modifier, and static methods with the
static keyword. ... In addition, an
interface can contain constant
declarations.
is followed by a semicolon, but no
braces (an abstract method does not
contain an implementation). Default
methods are defined with the default
modifier, and static methods with the
static keyword. ... In addition, an
interface can contain constant
declarations.
Similar questions