[Java daily question] 20161018, java20161018
20161017 for problem resolution, click "Java daily question" 20161018 below today's question to view
Package Oct2016; public class Ques1018 {public static void main (String [] args) {Obj obj01 = new Obj ("18"); Obj obj02 = new Obj ("19 "); obj01.printAge (obj02) ;}} class Obj {private String age; public Obj (String age) {this. age = age;} public void printAge (Obj obj) {String age = obj. age; System. out. println ("age:" + age );}}
Today's question:
What is the output result of the main program? (Click "[Java daily question] 20161018" below to view issue resolution 20161017)
Questions originally published on the public account and short book: [Java daily question] 20161018, [Java daily question] 20161018
The latest question is published on the public account every day. Welcome to subscribe and exchange progress