Page 1 of 1
					
				About Question enthuware.ocpjp.v7.2.1358 :
				Posted: Thu Nov 21, 2013 11:22 am
				by muttley
				What means "class basis"? Are they the classes that is in java.lang package?
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1358 :
				Posted: Thu Nov 21, 2013 11:43 am
				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.
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1358 :
				Posted: Thu Nov 21, 2013 12:03 pm
				by muttley
				Your answer took my doubts.
Tks
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1358 :
				Posted: Thu May 23, 2019 7:59 am
				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?
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1358 :
				Posted: Thu May 23, 2019 10:27 am
				by admin
				It is not about the size but the reduction in the number of instructions that have to be executed.
			 
			
					
				Re: About Question enthuware.ocpjp.v7.2.1358 :
				Posted: Thu May 23, 2019 10:59 am
				by Ildar_S
				I understand, thank you