About Question enthuware.ocpjp.v17.2.3155 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
imralav
Posts: 3
Joined: Thu Dec 07, 2023 8:59 am
Contact:

About Question enthuware.ocpjp.v17.2.3155 :

Post 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?

admin
Site Admin
Posts: 10065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 265 guests