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(); }
}
Correct Answer: It gets a compiler error.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions