[Java daily question] 20170310, java20170310
20170309 for problem resolution, click "Java daily question" 20170310 "below today's question to view the problem (The problem is resolved at the beginning of the public account, public ID: weknow619)
Package Mar2017; public class Ques0310 {static void test () {System. out. println ("test method in Test class");} public static void main (String [] args) {Ques0310 test = new Ques0310 (); test. test (); Sub sub = new Sub (); sub. test (); test = sub; test. test (); sub = test; sub. test () ;}} class Sub extends Ques0310 {static void test () {System. out. println ("test method in Sub class ");}}
Today's question:
What is the main program running result? (Click "[Java daily question] 20170310" below to view issue resolution 20170309)
Questions originally published on the public account and short book: [Java daily question] 20170310, [Java daily question] 20170310 (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 !!