MCQs > IT & Programming > Java > Output of the given program? import java.util.Properties; public class Test72 { public static void main(String[] args) { Properties p = new Properties(); p.put('grade', 'master'); Properties p2 = new Properties(p); System.out.println(p2.get('grade') + ' : ' + p2.getProperty('grade')); } }

Java MCQs

What is the output of the given program? import java.util.Properties; public class Test72
{ public static void main(String[] args) { Properties p = new Properties(); p.put("grade",
"master"); Properties p2 = new Properties(p); System.out.println(p2.get("grade") + " : " +
p2.getProperty("grade")); } }

Answer

Correct Answer: null : master

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

More Java MCQ Questions

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it