Two Laptop Bag*
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 Java 8 in Action this week in the Java 8 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: 3206
    
    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.
 
 
subject: Marcus Mock3 Q17
 
Similar Threads
Marcus exam 3 q 17
Confusion!
Question from mock exam....
Mock Exam Q
difference between static and final method