About Question com.enthuware.ets.scjp.v6.2.169 :

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

Moderator: admin

Post Reply
piotrkmiotczyk
Posts: 27
Joined: Mon Sep 22, 2014 1:30 pm
Contact:

About Question com.enthuware.ets.scjp.v6.2.169 :

Post by piotrkmiotczyk »

This is vaguely related but does numeric promotion from char to int happen when passing a char as an argument to a method which accepts int?

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

Re: About Question com.enthuware.ets.scjp.v6.2.169 :

Post by admin »

Yes. Primitive promotion (i.e. widening) can be done in method calls but not narrowing.
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 93 guests