हिंदी

Java language uses each primitive data type under a specific packet. Other than a data type, the packet also contains the functions to convert the primitive type into string and vice versa. - Computer Applications

Advertisements
Advertisements

प्रश्न

Java language uses each primitive data type under a specific packet. Other than a data type, the packet also contains the functions to convert the primitive type into string and vice versa. The computer uses 128 ASCII characters. Each character is assigned a specific numeric code called ASCII code. Java language also has the facility to convert the characters into the ASCII code and vice versa. 

Based on the above discussion, answer the following questions:

  1. What is the name given to the packet containing a primitive data type?
  2. What is the function used to convert a string data into integer type?
  3. Name the term used to convert a primitive data into the object of its wrapper class.
  4. What is the syntax to convert a string "24" into integer data type?
संक्षेप में उत्तर

उत्तर

  1. Wrapper class
  2. parselnt() or valueOf()
  3. Autoboxing
  4. int num = Integer.value0f("24");
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Library Classes - EXERCISES [पृष्ठ १७८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 2 Library Classes
EXERCISES | Q V. | पृष्ठ १७८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×