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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?