![]() Integer.toString() converts integer data to String. Wrapper classes belong to java.util package. Java class library includes all the packages. Question 8Įach character oriented function uses a wrapper tag Character. Question 7Ĭonversion from primitive type to wrapper object is called as autoboxing. String data is converted to float type by using Float.parseFloat(String) function. Wrapper class uses first letter in upper case. The data type int is included in Integer wrapper class. The user can create a data type by using a class. Question 2īy default, java.lang package is imported in a Java program. Reason - The variable must be declared 'char' type, if a character is to be assigned to it. type, if a character is to be assigned to it. Reason - parse and valueOf functions are used to convert a string to a primitive data type. Character.isDigit( ) and Character.isNumber( ) are same.Character.isLetter( ) and Character.isAlphabet( ) are same.Character.isLowerCase( ) and Character.toLowerCase( ) are same.Which of the following statements is true? Reason - Character.isWhiteSpace( ) returns a boolean type value true if the given argument is a white space and otherwise, it returns false. Which of the following functions checks whether a character is a blank or not? Reason - valueOf() function converts String to primitive type. Reason - The parseInt() function is a member of integer wrapper class. Reason - Automatic conversion of primitive data into an object of its equivalent wrapper class is called autoboxing. Question 3Īutomatic conversion of primitive data into an object of wrapper class is called Reason - A wrapper class is a class that contains a primitive data type. Question 2Įach primitive data type belongs to a specific Reason - A package is a collection of Java classes. Chapter 2 Library Classes Class 10 - APC Understanding Computer Applications with BlueJ
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |