problem in below code

radha gogia

radha gogia

@radha-BTDzli Oct 22, 2024
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...

qu qu1
[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...

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • avii

    avii

    @avii-TGGs8o Oct 6, 2014

    Post the code and also error/output. Not in images