Category Archives: Java

Java.io.CharArrayReader Class in Java

java.io.CharArrayReader class creates a character buffer using a character array. Declaration: public class CharArrayReader extends Reader Constructor : CharArrayReader(char[] char_array) : Creates a CharArrayReader from… Read More »

NaN (Not a Number) in Java

Can You guess the output of following code fragment: Yes, You guessed it right: ArithmeticException Output: Exception in thread “main” java.lang.ArithmeticException: / by zero at… Read More »