What happens when the following code is compiled?

public class Performer {
    public static void main(String[] args) {
        if (args instanceof Object) { // 1 
            System.out.println("yes");
        } else {
            System.out.println("no");
        }
    }
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes