Hi Asha,
According to my opinion the answer for u r question is like this.
myChar c=98//no problem because you are assigning literal.
in the next case you are assinging like this
myInt=1
myChar=myInt
here you are assigning a variable of type int to a variable of type char.But in
java implicit conversion has done from smaller data types to larger data types i.e., char to int but for viceversa you have to cast explicitly.For that you get compilation error.
bye
sreedhar garimella(sreedhar_gari@hotmail.com)