This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Bro, I got what you are asking.. but still it makes sense for the compiler not to complain...
we know that:
"char var can be assigned an int without any cast as long as it is within the char range."
so when you say char c=(int)1, you are really not saying anything different. It is totally the same as saying char c=1, becoz 1 without any cast is an int anyway.
So the compiler won't complain..since your casting is not making any difference... I think I make sense...
Joined: Mar 19, 2004
Gula, I speak both polish and russian . They are indeed similar. f.e., "kurit' travku" sounds similar to "palic trawe". On the other hand, "tusovka" has nothing common with "impreza". I like Russian and if java would not exist, I would be probably a filologist. Thanks everyone for brief explanation. I'm taking exam in 5 days - after 2 weeks learning (no time). Wish me luck!