About Question enthuware.ocpjp.v7.2.1485 :
Moderator: admin
-
- Posts: 17
- Joined: Wed Nov 26, 2014 1:59 pm
- Contact:
About Question enthuware.ocpjp.v7.2.1485 :
Wich is the criteria for returning 'true' or a Java runtime exception?
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1485 :
The explanation specifies the rule :
HTH,
Paul.
This means, it will never throw an exception.If the argument arg is null, then the result is "false". If arg is a boolean or Boolean, then the result is the string returned by String.valueOf(). Otherwise, the result is "true".
HTH,
Paul.
Re: About Question enthuware.ocpjp.v7.2.1485 :
I was unable to drag anything into the third box. The first two boxes work without a problem.
I'm on Ubuntu 16.10
$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
I'm on Ubuntu 16.10
$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Who is online
Users browsing this forum: No registered users and 9 guests