What can a static method use?
QuizMediumJava onlyAsked in: Accenture, Infosys, TCS, Wipro
Inside a static method of class Utils, which of these compile? Pick all that apply.
- Reading an instance field
ndirectly - Calling another static method of Utils
- Using
this - Creating an object with
new Utils()and reading its field
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.