The markSupported() method of PushbackInputStream class in Java is used to verify the supportability of mark() and reset() methods. It always returns false as this class does not support mark() and reset().
public boolean markSupported()
Overrides: This method overrides the markSupported() method of FilterInputStream class.
Parameters: This method does not accept any parameter.
Return value: This method returns false as this class does not support mark() and reset().
Exceptions: This method does not throw any exception.
Below programs illustrate markSupported() method of PushbackInputStream class in IO package:
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.