zoukankan      html  css  js  c++  java
  • java题库7

    1.hashmap允许值为空,hashtable不允许;

    2.public class Test
    {
        static boolean foo(char c)
        {
            System.out.print(c);
            return true;
        }
        public static void main( String[] argv )
        {
            int i = 0;
            for ( foo('A'); foo('B') && (i < 2); foo('C'))
            {
                i++ ;
                foo('D');
            }
        }
    }

    What is the result?// ABDCBDCB
     
    
    
  • 相关阅读:
    Java异常处理设计(三)
    TS 3.1
    TS 3.1
    Other
    样式
    Other
    Other
    TS 3.1
    TS 3.1
    TS 3.1
  • 原文地址:https://www.cnblogs.com/yxj808/p/12783162.html
Copyright © 2011-2022 走看看