problem in below code
@radha-BTDzli
•
Oct 22, 2024
Oct 22, 2024
1.3K
In the two pics ,the first pic shows that when i declare 2 character variables, and i see the decompiler,it shows that internally jvm takes these two character literals as integers...
[Click to Enlarge]
but when i try to print the value of these 2 character literals,then the java decompiler shows that these character literals are taken as characters only,..
So my question is why does this happen that when i am simply declaring the character literal,then it takes it to be an integer data internally and when i print the value of these character literals,it considers it to be a character type of data...
[Click to Enlarge]
but when i try to print the value of these 2 character literals,then the java decompiler shows that these character literals are taken as characters only,..
So my question is why does this happen that when i am simply declaring the character literal,then it takes it to be an integer data internally and when i print the value of these character literals,it considers it to be a character type of data...