About Question enthuware.ocpjp.ii.v11.2.1322 :

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

Moderator: admin

Post Reply
philippe
Posts: 26
Joined: Sun Jul 16, 2017 4:24 pm
Contact:

About Question enthuware.ocpjp.ii.v11.2.1322 :

Post by philippe »

Regarding the following option:
Assertions require changes at the API level.
What exactly is meant with the explanation:
Besides the 'assert' keyword, new methods are added in java.lang.Class and java.lang.ClassLoader classes.
I don't understand the link between the 'assert' keyword and new methods that are added in java.lang.Class and java.lang.ClassLoader.

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

Re: About Question enthuware.ocpjp.ii.v11.2.1322 :

Post by admin »

The assert facility built on top of the existing functionality provided by the JVM. The JVM is not affected (and is even unaware that something like assertions exist). Class and ClassLoader classes are a part of the Java Application Programming Interface (API) and changes were made to these classes to support assertions.
You may go through this for more details: https://docs.oracle.com/javase/7/docs/t ... ssert.html

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests