About Question enthuware.ocpjp.v7.2.1358 :

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 » Thu Nov 21, 2013 11:22 am

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

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

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

Post by admin » Thu Nov 21, 2013 11:43 am

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 » Thu Nov 21, 2013 12:03 pm

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 » Thu May 23, 2019 7:59 am

"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: 8702
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Thu May 23, 2019 10:27 am

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 » Thu May 23, 2019 10:59 am

I understand, thank you

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest