हिंदी

What will be the output when the following code segment is executed?String s = “1001”;int x = Integer. valueOf(s);double y = Double.valueOf(s);System.out.println(“x=”+x);System.out.println(“y=”+y); - Computer Applications

Advertisements
Advertisements

प्रश्न

What will be the output when the following code segment is  executed?
String s = “1001”;
int x = Integer. valueOf(s);
double y = Double.valueOf(s);
System.out.println(“x=”+x);
System.out.println(“y=”+y); 

लघु उत्तरीय

उत्तर

The output is:
x = 1001
y = 1001.000000

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Library Classes - Review Insight [पृष्ठ १७५]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 2 Library Classes
Review Insight | Q 3. (a) | पृष्ठ १७५
अविचल Computer Applications [English] Class 10 ICSE
अध्याय 4 String Handling
Review Insight | Q 10. | पृष्ठ २८५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×