This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Marcus Mock3 Q17 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Marcus Mock3 Q17" Watch "Marcus Mock3 Q17" New topic
Author

Marcus Mock3 Q17

Ying Xing
Greenhorn

Joined: Sep 23, 2000
Posts: 24
Hi all,
The given answer is 1 & 3, I think choice 2 is also correct, because dynamic method lookup does not apply to static methods, we can always access static methods using ClassName.staticMethodName(), however static methods can be hidden in its subclasses.
Question 17)
Which of the following statements are true?
1) static methods do not have access to the implicit variable called this
2) a static method may not be overriden
3) a static method may not be overriden to be non-static
4) a static method may not be overloaded

Please correct me if I'm wrong!
Ying Xing
Greenhorn

Joined: Sep 23, 2000
Posts: 24
Any suggestions please?
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3255
    
    2
You are correct.
-Paul.
------------------
Get Certified, Guaranteed!
http://pages.about.com/jqplus


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
Victor Wong
Greenhorn

Joined: Sep 12, 2000
Posts: 7
No, you are wrong. See the previous discussions:
http://www.javaranch.com/ubb/Forum24/HTML/000332.html
Ying Xing
Greenhorn

Joined: Sep 23, 2000
Posts: 24
Thanks for the replies.
From the previous discussions, I can conclude that a static method may not be overriden.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Marcus Mock3 Q17
 
Similar Threads
difference between static and final method
Marcus exam 3 q 17
Question from mock exam....
Mock Exam Q
Confusion!