What type does executeScript return for a number?
QuizMediumJava onlyAsked in: Infosys, TCS, Wipro
What does this print?
Object r = ((JavascriptExecutor) driver).executeScript("return 1 + 2;");
System.out.println(r.getClass().getSimpleName());- Long
- Integer
- String
- Double
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.