Java – static import method overlap
•
Java
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
二维码