Become Oracle Certified with updated 1Z0-809 exam questions and correct answers
Which of the following code will create/return a Locale object for the JVM, on which your code is running?
Consider the code of Test.java file:
1. package com.udayan.ocp;
2.
3. class Player {
4. String name;
5. int age;
6.
7. Player() {
8. this.name = "Yuvraj";
9. this.age = 36;
10. }
11.
12. public String toString() {
13. return name + ", " + age;
14. }
15.
16. public Class getClass() {
17. return super.getClass();
18. }
19. }
20.
21. public class Test {
22. public static void main(String[] args) {
23. System.out.println(new Player());
24. }
25. }
What will be the result of compiling and executing Test class?
© Copyrights DumpsCertify 2025. All Rights Reserved
We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsCertify.