Skip to content
CodeKruPro

Which pairs are valid overloads?

QuizEasy-MediumJava onlyAsked in: Accenture, Capgemini, Infosys, TCS, Wipro

Each option shows two methods in the same class. Which pairs compile? Pick all that apply.

  • void type(String text) and void type(String text, int delayMs)
  • int find(int id) and long find(int id)
  • void click(By locator) and void click(WebElement element)
  • void open(String url) and void open(String path)

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in