Advertisements
Advertisements
प्रश्न
Differentiate between parselnt() and toString() functions.
अंतर स्पष्ट करें
Advertisements
उत्तर
| Sr. No. | parselnt() functions | toString() functions |
| 1. | This method in the Integer wrapper class converts a string to an integer. | This method in the Integer wrapper class converts a basic data type (int) to a string data type. |
| 2. | Example:
|
Example:
Now that s has the value "24", mathematical operations cannot be performed on it. |
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Library Classes - EXERCISES [पृष्ठ १७९]
