1.

What is the output of this program?import java.util.*; public class properties_Example { public static void main(String args[]) { Properties object = new Properties(); object.put("PQ", new Integer(23)); object.put("SR", new Integer(46)); object.put("UV", new Integer(25)); System.out.print(object.keySet()); } }

A. [PQ, UV, SR]
B. [PQ, UV]
C. [UV, SR]
D. [23, 46, 25]
E. None of these
Answer» B. [PQ, UV]


Discussion

No Comment Found

Related MCQs