Numbers
- Which of these is a method can generate a boolean output?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
retbool()
- What is the output of this program?
import java.util.*;
public class LOCALE_CLASS_Example
{
public static void main(String args[])
{
Locale object = new Locale("ENGLAND") ;
System.out.print(object.getCountry());
}
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Nothing is displayed
- What is the output of this program?
import java.util.*;
public class LOCALE_CLASS_Example
{
public static void main(String args[])
{
Locale object = new Locale("English", "USA") ;
System.out.print(object.getCountry());
}
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
USA
- What is the output of this program?
import java.util.*;
public class LOCALE_CLASS_Example
{
public static void main(String args[])
{
Locale object = new Locale("ENGLISH") ;
System.out.print(object.getDisplayLanguage());
}
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
english