Question 1
Which of the following code is correct to create an instance for formatting numbers in percent?
◦ NumberFormat.percentInstance(locale);
◦ NumberFormat.getPercentInstance();
◦ NumberFormat.percentInstance();
◦ NumberFormat.getPercentInstance(locale);
Question 2
Which of the following are valid methods in NumberFormat?
◦ setMinimumIntegerDigits(int)
◦ format(double)
◦ format(long)
◦ setMaximumIntegerDigits(int)