Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817
Moderator: admin
-
imralav
- Posts: 3
- Joined: Thu Dec 07, 2023 8:59 am
-
Contact:
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: 10067
- Joined: Fri Sep 10, 2010 9:26 pm
-
Contact:
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.
Users browsing this forum: Bing [Bot], Google [Bot] and 215 guests