About Question enthuware.ocajp.i.v7.2.1140 :
Moderator: admin
-
- Posts: 4
- Joined: Thu Jan 09, 2014 3:21 pm
- Contact:
About Question enthuware.ocajp.i.v7.2.1140 :
do we need to study about native and strictfp for this exam?
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
Not in detail but just the basic stuff such as what are they meant for because they are keywords.
HTH,
Paul.
HTH,
Paul.
-
- Posts: 18
- Joined: Mon Jan 13, 2014 5:39 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
As I understand it the only non-access modifiers this test includes is abstract, final and static. So using strictfp and native seems silly.
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
Our recommendation is that one should have a basic idea about every keyword. You may ignore the advice if you think otherwise 
HTH,
Paul.

HTH,
Paul.
-
- Posts: 6
- Joined: Mon Sep 16, 2019 4:11 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
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?
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
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.
-
- Posts: 1
- Joined: Mon Apr 06, 2020 8:03 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
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?
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?
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
But the question doesn't say concrete class or abstract class. It just says class.
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
if exam says only class then its by default concrete class right?
-
- Site Admin
- Posts: 10384
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1140 :
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.
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.
Who is online
Users browsing this forum: No registered users and 6 guests