हिंदी

Which of the following method will accept a string by using scanner object? - Computer Applications

Advertisements
Advertisements

प्रश्न

Which of the following method will accept a string by using scanner object? 

विकल्प

  • next()

  • next.read()

  • next.String()

  • next.char()

MCQ

उत्तर

next()

Explanation:

next() reads a single word (string) from the input using a Scanner object. 

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.06: Input in Java - EXERCISES [पृष्ठ ६५]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.06 Input in Java
EXERCISES | Q I. 4. | पृष्ठ ६५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×