thanx zaphod_b for the clarification i get it now and i will keep in mind the thread thinng....
thanx pbrockway2 but i dont have JLS to refer with i am using complete reference for java should i...
Type: Posts; User: Dark knight
thanx zaphod_b for the clarification i get it now and i will keep in mind the thread thinng....
thanx pbrockway2 but i dont have JLS to refer with i am using complete reference for java should i...
class None{
public static void main(String args[])
{
byte b =-2;
b = (byte)(b>>>10);
System.out.println("the value of b is"+b);// output -1
}
}
I am not getting why this code is generating...
thanx Zaphod_b you were a great help i have been referring complete reference for java i read about type promotion and casting and now i understand it completely...
class Char{
public static void main (String a[])
{
char c1,c2,c3;
c1=64;
c2=187;
//c3=64+187;
System.out.println("The symbol is "+ (c1+c2));
}
}