Class CharConversionException in Java

0
66
digitization, transformation, binary
Spread the love

Class CharConversionException in Java

A CharConversionException object is thrown when a problem occurs in converting a character to a byte.

The structure of the class CharConversionException is given by

public class java.io.CharConversionException extends java.io.IOException {
// Constructors
public CharConversionException();//This constructor creates a CharConversionException with no detail message.
public CharConversionException(String s);//This constructor creates a CharConversionException with the specified detail message.
}

The class CharConversionException also inherits methods from class Object and Throwable.

From Object classFrom Throwable class
clone()fillInStackTrace()
getClass()getMessage()
notify()printStackTrace()
wait()printStackTrace(PrintWriter)
wait(long, int)getLocalizedMessage()
wait(long)printStackTrace(PrintStream)
equals(Object)
toString()
finalize()
hashCode()
notifyAll()


Spread the love
READ  How Memory Allocation Happens in Java?
I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on ani01104@gamil.com

LEAVE A REPLY

Please enter your comment!
Please enter your name here