What is the proper way to write a fully qualified reference to a method name in Java?
Message[] com.sun.mail.imap.IMAPFolder#addMessages(Message[])Message[] com.sun.mail.imap.IMAPFolder.addMessages(Message[])- Some other way
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the signature of the method is
Message[] addMessages(Message[] msgs)……and the class name is
IMAPFolder……and it’s in the package
com.sun.map.imap……then the fully qualified method name would be
com.sun.map.imap.IMAPFolder.addMessages(Message[] msgs).Visible class/instance variables share the same pattern, although for the sake of OO design, this is typically discouraged.
Normally, one only concerns themselves with the fully qualified object name, not the method/[instance|class] variable name.