Java – static import method overlap

If you have a static import to Java Lang. integer, and my class also has a static method parseInt (string). Which method does calling parseInt ("12345") point to?

Thank you in advance!

Solution

If you are in your class, it will call your method

prove: http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf $8 and $6.30 (see comments)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>