Class UnsupportedEncodingException in Java

0
83
digitization, transformation, binary
Spread the love

UnsupportedEncodingException in Java

UnsupportedEncodingException signals that a requested character encoding is not supported by the current Java Virtual Machine.

An UnsupportedEncodingException is thrown when a character encoding scheme is not available. It can be thrown by methods of classes in java.io and other packages.

The class structure of class UnsupportedEncodingException is given as

public class java.io.UnsupportedEncodingException extends java.io.IOException{
// Public Constructors
public UnsupportedEncodingException();
public UnsupportedEncodingException(String s);
}

The details of the methods of UnsupportedEncodingException are given as:

public UnsupportedEncodingException();

This constructor creates an UnsupportedEncodingException with no detail message.

public UnsupportedEncodingException(String s);

This constructor creates an UnsupportedEncodingException with the specified detail message(parameter s).

The class-UnsupportedEncodingException also inherits methods from Object and Throwable class. They are as follows:

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  Encapsulation 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