MCQs > IT & Programming > Java > output of program class Test {T obj; Test(T obj) { this.obj=obj } T getobj() {return obj; } } class RunC {public static void main(String[] ar) { Test obj=new Test('hello'); System.out.print(obj.getobj()); } }

Java MCQs

output of program class Test {T obj; Test(T obj) { this.obj=obj } T getobj() {return obj; } } class RunC {public static void main(String[] ar) { Test obj=new Test("hello"); System.out.print(obj.getobj()); } }

Answer

Correct Answer: hello

Explanation:

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

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it