aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java String and IO
  • Which of the following is the method of a StringTokenizer...
Multiple choice

Which of the following is the method of a StringTokenizer class?

  1. Token()

  2. nextToken()

  3. println()

  4. ttype()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The nextToken() is the method of a StringTokenizer() class, and ttype is the filed name.

Keep practicing — related questions

  • What does String nextToken() method of the StringTokenizer class in java do?
  • What does nextElement() method return in StringTokenizer class?
  • What will be the output of following program code? importjava.util.StringTokenizer; publicclassTokendemo { ...
  • Which of the following package is contained by the StringTokenizer class in java?
  • Which of the following methods is used to split the string in java?
  • Which of the following methods is used to calculate the number of times the tokenizer's nextToken method ca...
  • StringTokenizer st= new StringTokenizer(String s). The output string is tokenized based on
  • Which of the following methods in StringBuffer class concatenates two strings of different types to the end...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy