Learn Java Programming - Instanceof Operator Tutorial

Publicado em: 24 Janeiro 2016
no canal de: Daniel Ross
1,437
14

The first thing that we need to understand is the definition of a supertype. A supertype is a class or interface that is higher up the inheritance hierarchy. The instanceof operator compares an object(instance) to the Name of a supertype and returns a boolean result. The instanceof operator will also return true if the instance is of the same class name.
(reference variable) instanceof (Name of supertype)
String s = "Hello World";
s instanceof Object; // true


Nesta página do site você pode assistir ao vídeo on-line Learn Java Programming - Instanceof Operator Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Daniel Ross 24 Janeiro 2016, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,437 vezes e gostou 14 espectadores. Boa visualização!