[Java daily question] 20170111, java20170111
20170110 for problem resolution, click "Java daily question" 20170111 "below today's question to view the problem (The problem is resolved at the beginning of the public account, public ID: weknow619)
Package Jan2017; public class Ques0111 {public static void main (String [] args) {final Person p1 = new Person ("James "); final Person p2 = new Person ("Li Si"); p1 = new Person ("Wang Wu"); p2.setName ("Wang Wu") ;}} class Person {private String name; person (String name) {this. name = name;} public void setName (String name) {this. name = name ;}}
Today's question:
Is there a compilation error in the main program? (Click "[Java daily question] 20170111" below to view issue resolution 20170110)
Questions originally published on the public account and short book: [Java daily question] 20170111, [Java daily question] 20170111 (you can also scan the Avatar QR code to view)
The weknow team has activated the authentication and has answered questions. If you have any questions, you can also consult. Click the answer to find me !!