`
weknow619
  • 浏览: 62637 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
20161118问题解析请点击今日问题下方的“【Java每日一题】20161121”查看 package Nov2016.use01; class Test { public String getString(){ return "123"; } } package Nov2016; import Nov2016.use01.Test; public class Ques1121 { public static void main(String[] args) { Te ...
20161117问题解析请点击今日问题下方的“【Java每日一题】20161118”查看 package Nov2016; public class Ques1118 { public static final int NUM = 10000000; public static void main(String[] args) { long result = NUM * 100 * 20; System.out.println("结果:"+result); } } 今日问题: 请问主程序输出结果是什么?(点击以下“【Java ...
20161116问题解析请点击今日问题下方的“【Java每日一题】20161117”查看 package Nov2016; public class Ques1117 { public static void main(String[] args) { Sub sub = new Sub(); sub.doThing(); } } class Parent{ Parent(){ new Other(); } } class Sub extends Parent{ ...
20161115问题解析请点击今日问题下方的“【Java每日一题】20161116”查看 package Nov2016; public class Ques1116 { public static void main(String[] args){ System.out.println("常量是"+Const.NUM); } } 另一个文件中的常量类: public class Const{ public final static int NUM = 110; } 今日问题: 使用命令行工具编译运行后 ...
20161114问题解析请点击今日问题下方的“【Java每日一题】20161115”查看 package Nov2016; import java.io.Serializable; public class Ques1115 implements Serializable{ private static final long serialVersionUID = 1L; public final int num = init(); // 通过方法赋值 public int init(){ return 123; ...
20161111问题解析请点击今日问题下方的“【Java每日一题】20161114”查看 package Nov2016; import java.io.Serializable; // V1.0版 public class Ques1114 implements Serializable{ private static final long serialVersionUID = 1L; public final int num; public Ques1114(){ num = 123; } } ...
20161110问题解析请点击今日问题下方的“【Java每日一题】20161111”查看 package Nov2016; import java.io.Serializable; public class Ques1111 implements Serializable{ private static final long serialVersionUID=1L; public final int num = 123; } 今日问题: 请问如果将Ques1111序列化后存储到磁盘中,反序列化时将num属性修改为321,那么反序列化后对象的num值是多少? ...
20161109问题解析请点击今日问题下方的“【Java每日一题】20161110”查看 package Nov2016; import java.util.HashSet; public class Ques1110 { public static void main(String[] args){ String str1 = "123"; String str2 = "123"; String str3 = new String("123"); ...
20161108问题解析请点击今日问题下方的“【Java每日一题】20161109”查看 package Nov2016; import java.lang.reflect.Method; public class Ques1109 { public static void main(String[] args) throws Exception { String methodName = "testMethod"; Method method01 = Test.class.getMethod(methodN ...
20161107问题解析请点击今日问题下方的“【Java每日一题】20161108”查看 package Nov2016; import java.util.TreeSet; public class Ques1108 { public static void main(String[] args){ Animal dog = new Animal("dog"); Animal cat = new Animal("cat"); TreeSet<Animal> ...
20161104问题解析请点击今日问题下方的“【Java每日一题】20161107”查看 package Nov2016; import java.util.List; public class Ques1107 { public static void main(String[] args) { List<String>[] list = new List<String>[]; } } 今日问题: 请问主程序能否正常编译通过?(点击以下“【Java每日一题】20161107”查看20161104问题解析) ...
20161103问题解析请点击今日问题下方的“【Java每日一题】20161104”查看 package Nov2016; public class Ques1104 { private String num; public void setNum(String num){ num = num; // 1 this.num = num; // 2 } public String getNum(){ return num; } } 今日问题: 注释1和2两处 ...
20161102问题解析请点击今日问题下方的“【Java每日一题】20161103”查看 package Nov2016; import java.util.List; public class Ques1103 { public void method01(String[] array){} public void method01(Integer[] array){} public void method02(List<String> list){} public void method02(Li ...
20161101问题解析请点击今日问题下方的“【Java每日一题】20161102”查看 package Nov2016; public class Ques1102 implements Parent{ @Override public void method() { } } interface Parent{ public void method(); } 今日问题: 请问主程序能否正常编译通过??(点击以下“【Java每日一题】20161102”查看20161101问题解析) 题目原 ...
20161031问题解析请点击今日问题下方的“【Java每日一题】20161101”查看 package Nov2016; import java.util.HashMap; import java.util.Map; public class Ques1101 { public static void main(String[] args) { HashMap<Integer, Integer> map = new HashMap<Integer, Integer>(); for (int i ...
Global site tag (gtag.js) - Google Analytics