About Question enthuware.ocpjp.v7.2.1153 :

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

Moderator: admin

Post Reply
icepeanuts
Posts: 53
Joined: Thu Nov 22, 2012 12:01 am
Contact:

About Question enthuware.ocpjp.v7.2.1153 :

Post by icepeanuts »

For the code rs.getString(0)

Why does the compiler think it is valid? It should report this error it at compile time.

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

Re: About Question enthuware.ocpjp.v7.2.1153 :

Post by admin »

Compiler doesn't care about actual values. It just checks if you are passing an int to a method that requires an int. This is OCA stuff :)
-Paul.
If you like our products and services, please help us by posting your review here.

icepeanuts
Posts: 53
Joined: Thu Nov 22, 2012 12:01 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1153 :

Post by icepeanuts »

u r right

Post Reply

Who is online

Users browsing this forum: No registered users and 226 guests