Qtr No. 213, New Town Yehlanka Indore 454775
In a pattern matching statement with instanceof, what is the role of a pattern variable?
It defines a new class for the object being matched.
It stores the result of the instanceof check (true or false).
It holds the value of the object if the type matches the pattern.
It allows for custom logic to be applied during the type check.
To get all Infosys Certified Java SE 21 Developer Exam questions Join Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in