MCQs > IT & Programming > JavaScript > What's the output? Public class test75 { Public static void main(string[] args) { System.out.printIn(new A(){{}}.tostring()); } } Class A { Public string tostring() { return getclass().getName(); } }

JavaScript MCQs

What is the result of compiling and running the given code?

Public class test75 {

Public static void main(string[] args) {

System.out.printIn(new A(){{}}.tostring());

}

}

Class A {

Public string tostring() { return getclass().getName(); }

}

Answer

Correct Answer: It gets a compiler error.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it