Question d’entretien chez Samsung Electronics

Java casting. if B extends A, can you do something like this? ((A) B).methodOfA