Ich bin nun so weit, das ich mich mit Java Casting beschäftige.
Was ein Casting ist weiss ich bereits, Beispiel:
Code (Text):
double a = 2.12;
int b = (int)a;
int b = (int)a;
Ich begreife diese Methoden einfach nicht.
Beispiel für Upcasting:
Code (Text):
List liste = new ArrayList();
Code (Text):
ArrayList liste = new ArrayList();

Wie wichtig sind Castings in Java ?
Wie wichtig sind Castings in Java ?
0 commentaires:
Enregistrer un commentaire