About Question enthuware.ocajp.i.v8.2.1277 :

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

Moderator: admin

Post Reply
__JJ__
Posts: 125
Joined: Thu Jul 05, 2018 6:44 pm
Contact:

About Question enthuware.ocajp.i.v8.2.1277 :

Post by __JJ__ »

Hi
So a float is considered larger than an int? I had thought seeing as they are both 32-bit that would not be the case.

TIA.

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

Re: About Question enthuware.ocajp.i.v8.2.1277 :

Post by admin »

Not in terms of size but in terms of range.
If you like our products and services, please help us by posting your review here.

Arold Aroldson
Posts: 21
Joined: Mon Nov 20, 2017 8:00 am
Contact:

Re: About Question enthuware.ocajp.i.v8.2.1277 :

Post by Arold Aroldson »

Why 4+1.0f doesn't print 5.0f ?

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

Re: About Question enthuware.ocajp.i.v8.2.1277 :

Post by admin »

The string printed by the print method is actually generated using Float's toString. It doesn't append the letter f. You may go through the description of this method to see how exactly it generates the string.
If you like our products and services, please help us by posting your review here.


Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 43 guests