Page 1 of 1

About Question enthuware.ocpjp.v17.2.3155 :

Posted: Fri Dec 15, 2023 11:02 am
by imralav
The question was:

Code: Select all

char a = 'a', b = 98; //1 
int a1 = a; //2 
int b1 = (int) b; //3 
System.out.println((char)a1+(char)b1); //4
Are we expected to know int values for characters for the exam?

Re: About Question enthuware.ocpjp.v17.2.3155 :

Posted: Fri Dec 15, 2023 8:13 pm
by admin
No, you will not be required to know the int values of chars. This question should mention the value in the problem statement.