logo

Crowdly

In which line do you find an anonymous object being created? class Student { ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

In which line do you find an anonymous object being created?

class Student {

public class MyClass {

    public static void main(String args[]) {

Student obj = new Student(); //Line-1

Student obj1 = new Student(), obj2 = new Student(); //Line-2

new Student(); //Line-3

    }

}

/**/

document.oncopy = new Function("return false");

document.onpaste = new Function("return false");

document.onselectstart = new Function("return false");

document.oncontextmenu = new Function("return false"); /**/

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on lms.upes.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!