About Question enthuware.ocpjp.v7.2.1224 :
Moderator: admin
-
- Posts: 27
- Joined: Sat Aug 31, 2013 5:38 pm
- Contact:
About Question enthuware.ocpjp.v7.2.1224 :
Why a public variable can't be accessed from OUTSIDE the package com.enthu.qb?
-
- Site Admin
- Posts: 10060
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
A public variable can be accessed from anywhere.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 27
- Joined: Sat Aug 31, 2013 5:38 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
Exactly so the answer is wrong !
-
- Site Admin
- Posts: 10060
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
I am not sure I understand your point. Which answer is wrong? The question says, "which member variables are accessible from OUTSIDE the package com.enthu.qb?"
j is a public field so it is accessible. What is the issue?
j is a public field so it is accessible. What is the issue?
If you like our products and services, please help us by posting your review here.
-
- Posts: 27
- Joined: Sat Aug 31, 2013 5:38 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
It gave me the "public" answer as a wrong answer
-
- Posts: 27
- Joined: Sat Aug 31, 2013 5:38 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
No answer ?
-
- Site Admin
- Posts: 10060
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
I tried it and it shows public as correct answer. Can you please confirm that you saw this as wrong answer?
thank you,
Paul.
thank you,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 27
- Joined: Sat Aug 31, 2013 5:38 pm
- Contact:
-
- Site Admin
- Posts: 10060
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
Not sure why you saw that. Attached is what I see. Can you please download the latest version of the question bank? ( 1.48)
If you like our products and services, please help us by posting your review here.
-
- Posts: 53
- Joined: Fri Sep 20, 2013 7:20 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1224 :
You have to look first at class visibility, then at member visibility. If the class isn't visible, none of its members will be visible, regardless of their access specifier.sinapse wrote:Exactly so the answer is wrong !
Who is online
Users browsing this forum: mcpunjabi and 115 guests