About Question enthuware.ocpjp.v7.2.1358 :

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

Moderator: admin

Post Reply
muttley
Posts: 19
Joined: Thu Feb 28, 2013 9:47 am
Contact:

About Question enthuware.ocpjp.v7.2.1358 :

Post by muttley »

What means "class basis"? Are they the classes that is in java.lang package?

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

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

Post by admin »

THe option says, "Assertions can be enabled or disabled on a class by class basis.", which means you can enable or disable assertions even for an individual class. In other words, for example, you can enable assertion for one class but disable for another in the same program using -ea and -da switches.

I am not sure what you mean by java.lang package. The above statement is a general statement about any class.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

muttley
Posts: 19
Joined: Thu Feb 28, 2013 9:47 am
Contact:

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

Post by muttley »

Your answer took my doubts.
Tks

Ildar_S
Posts: 5
Joined: Fri May 03, 2019 9:55 am
Contact:

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

Post by Ildar_S »

"Conditional compilation is used to allow an application that uses assertions to run with maximum performance"
Technically speaking this will remove any traces of assertions from the bytecode, making it smaller in size and increasing the performance. Right?

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

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

Post by admin »

It is not about the size but the reduction in the number of instructions that have to be executed.
If you like our products and services, please help us by posting your review here.

Ildar_S
Posts: 5
Joined: Fri May 03, 2019 9:55 am
Contact:

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

Post by Ildar_S »

I understand, thank you

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests