About Question enthuware.ocpjp.v7.2.1358 :
Moderator: admin
-
- Posts: 19
- Joined: Thu Feb 28, 2013 9:47 am
- Contact:
About Question enthuware.ocpjp.v7.2.1358 :
What means "class basis"? Are they the classes that is in java.lang package?
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1358 :
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.
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.
-
- Posts: 19
- Joined: Thu Feb 28, 2013 9:47 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1358 :
Your answer took my doubts.
Tks
Tks
-
- Posts: 5
- Joined: Fri May 03, 2019 9:55 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1358 :
"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?
Technically speaking this will remove any traces of assertions from the bytecode, making it smaller in size and increasing the performance. Right?
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1358 :
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.
-
- Posts: 5
- Joined: Fri May 03, 2019 9:55 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1358 :
I understand, thank you
Who is online
Users browsing this forum: No registered users and 26 guests