Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java - Coggle Diagram
Java
-
-
class vs type
A class is a blueprint for creating objects, by describing what variables the object can have (state) and what methods the object can do (behavior).
-
interface
An interface describes a behavior, which classes that implement it must do. An interface can define static final variables, declare abstract methods and default methods, define static methods, define nested classes with only static (final or non-final) variables and static initializer blocks and define interfaces which can declare abstract methods, define default methods and static methods.
extending interface
extending is inheritance, the interface (subtype) gets all the contents from the interface (supertype) it extends from, and you can override methods from that interface (supertype) if you want to.
-
-
-
literal
A literal is just written code representing a fixed specific value, like 1, 0.1 and 'a'. When you assign variables a literal, the memory the variable points to is changed right away to represent that value, no computation or evaluation.