About Question enthuware.ocajp.i.v7.2.1140 :

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

Moderator: admin

Post Reply
thupten
Posts: 4
Joined: Thu Jan 09, 2014 3:21 pm
Contact:

About Question enthuware.ocajp.i.v7.2.1140 :

Post by thupten »

do we need to study about native and strictfp for this exam?

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

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by admin »

Not in detail but just the basic stuff such as what are they meant for because they are keywords.

HTH,
Paul.

kecker
Posts: 18
Joined: Mon Jan 13, 2014 5:39 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by kecker »

As I understand it the only non-access modifiers this test includes is abstract, final and static. So using strictfp and native seems silly.

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

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by admin »

Our recommendation is that one should have a basic idea about every keyword. You may ignore the advice if you think otherwise :)

HTH,
Paul.

timwaagh
Posts: 6
Joined: Mon Sep 16, 2019 4:11 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by timwaagh »

Why do you recommend this? just as general knowledge a Java programmer should have or because this knowledge is useful for the exam? if so why is it useful?

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

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by admin »

Just as general knowledge that a Java programmer should have. That is why this is in the Foundation test and not in other standard tests.

vladi15151
Posts: 1
Joined: Mon Apr 06, 2020 8:03 pm
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by vladi15151 »

Which of the following are valid declarations in a class?

I think that first aswer "abstract int absMethod(int param) throws Exception;" is incorrect too, because abstract we can't define abstract method in simple classes(only interfaces and abstract classes), isn't is?

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

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by admin »

But the question doesn't say concrete class or abstract class. It just says class.

raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by raphaelzintec »

if exam says only class then its by default concrete class right?

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

Re: About Question enthuware.ocajp.i.v7.2.1140 :

Post by admin »

Not necessarily. The word class is used in general for all classes. Records and enums are also classes.
Unless the context makes it clear there is no need to assume that class means only concrete class.

In this case, the focus is on method, and not on the class.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests