मराठी

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×