About Question enthuware.ocajp.i.v7.2.864 :
Moderator: admin
-
- Posts: 10
- Joined: Tue Feb 12, 2013 9:12 pm
- Contact:
About Question enthuware.ocajp.i.v7.2.864 :
Struggled with this one because option one talks about "unexpected user inputs", which is when something out of the ordinary happens. Kind of think this one is a bit on the gray side.
-
- Posts: 5
- Joined: Wed Mar 27, 2013 11:57 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
Till now I knew that Exceptions were there to make sure to make the program not to crash if smth unexpected happened and not just for "logging purposes". We can log unexpected user behaviors even through "if-else if-else" but there is no other mechanism to make the program not to crash if something goes wrong. I understand that this is what Oracle wants but it does not make much sense.
-
- Posts: 2
- Joined: Fri Dec 20, 2013 10:59 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
This is a bit subjective as there are four correct answers.
Logging is a separate concept from Exceptions.
Unexpected user inputs are a reason for IllegalArgumentException.
Logging is a separate concept from Exceptions.
Unexpected user inputs are a reason for IllegalArgumentException.
-
- Posts: 3
- Joined: Fri Oct 03, 2014 2:29 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
I agree that the answers are somewhat subjective. You could make an argument for any of the given answers.
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
Yes, it is a bit subjective and that is what the explanation says as well.
If you like our products and services, please help us by posting your review here.
-
- Posts: 6
- Joined: Mon Feb 01, 2016 3:13 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
The only reason this question would help is:
if you haven't been warned (100 times) already that some exam questions are going to be unclear
or
if a question with very similar syntax would show up in the exam.
Otherwise, it (re-creating potential confusing sentences) is a waste of everyone's time.
if you haven't been warned (100 times) already that some exam questions are going to be unclear
or
if a question with very similar syntax would show up in the exam.
Otherwise, it (re-creating potential confusing sentences) is a waste of everyone's time.
-
- Posts: 29
- Joined: Mon Mar 30, 2015 6:00 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
its purpose is to recreate the exam. if that includes confusing or obscure statements, so be it.
-
- Posts: 2
- Joined: Wed Jul 12, 2017 2:38 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
I understand what admin says about this question, but in my opinion it's a bad question. If the exam has such questions, then I personally value the exam less.
-
- Posts: 202
- Joined: Mon Apr 02, 2018 8:40 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
I don't understand why is this not correct:
Based on exceptions the JVM closes the thread that is running the program. or?that the VM uses to exit the program when something unexpected happens.
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
There may be multiple threads running inside a JVM. Terminating a thread doesn't mean shutting down the JVM.
If you like our products and services, please help us by posting your review here.
-
- Posts: 202
- Joined: Mon Apr 02, 2018 8:40 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
Ok but I still don't understand why this is not a correct option?
that the VM uses to exit the program when something unexpected happens.
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.864 :
because that is not what happens. Java Exceptions is NOT a mechanism that the VM uses to exit the program when something unexpected happens.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 75 guests