VOOZH about

URL: https://www.geeksforgeeks.org/java/stringreader-marksupported-method-in-java-with-examples/

⇱ StringReader markSupported() method in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

StringReader markSupported() method in Java with Examples

Last Updated : 11 Jul, 2025
The markSupported() method of StringReader Class in Java is used to check whether this StringReader is supports mark() operation or not. It returns a boolean which states if the reader is mark supported. Syntax:
public boolean markSupported()
Parameters: This method does not accepts any parameters Return Value: This method returns a boolean value which tells if this StringReader supports mark() operation or not. It return true if it is markSupported. Else it returns false. Below methods illustrates the working of markSupported() method: Program 1:
Output:
Is StringReader markSupported: true
Program 2:
Output:
Is StringReader markSupported: true
Reference: https://docs.oracle.com/javase/9/docs/api/java/io/StringReader.html#markSupported--
Comment