Menu
Question Index
...

How many objects of O are created?

public class O
{
    O o = new O();

    public static void main(String[] args)
    {
        O o = new O();
        o.create();
    }

    public void create()
    {
        o = new O();
    }
}


2
3
4
Compilation Error
Runtime Error

Doubts

Problems

Topic: Advanced Java Programming Concepts

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App