mohitkumar gupta wrote: Character ob=Character.valueOf('s'); boolean abcdefg=Boolean.parseBoolean("true"); i tried the above code but it didn't give any error .i think valueOf and parseBoolean functions doesn't work for boolean and character help.