Banco Do Brasil Agente De Tecnologia Practice Questions - Banco Do Brasil Escriturário - Agente De Tecnologia (TI) Exam

Access More Questions
In Java 17, a software engineer at Banco do Brasil is designing a payment processing module where a base class 'PaymentProcessor' defines a method 'public void process(Transaction tx)'. A subclass 'PixProcessor' overrides this method. At runtime, when an instance of 'PixProcessor' is referenced via a variable of type 'PaymentProcessor' and 'process(tx)' is invoked, which mechanism determines that the 'PixProcessor' implementation must execute?
Correct Answer:
Dynamic method dispatch (late binding) resolved at runtime via the virtual method table (vtable)

Access more questions from this quiz

Continue to Banco do Brasil Agente de Tecnologia Practice Questions - Banco do Brasil Escriturário - Agente de Tecnologia (TI) Exam for more practice questions and the full quiz experience.

Access More Questions