亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 開發設計 > 正文

SCJP1.4高效率復習提綱

2019-11-18 11:45:01
字體:
來源:轉載
供稿:網友

  SECTION 1: DECLARATIONS AND access CONTROL
  1. An identifier in java must begin with a letter, a dollar sign($), or an underscore (_); subsequent characters may be letters, dollar signs, underscores, or digits.
  2. All the keyWords in java are comPRised of lower case characters only.
  3. There are three top-level elements that may appear in a file. None of these elements is required. If they are present, then they must appear in the following order:
    -package declaration
    -import statements
    -class definitions
  4. A Java source file (Java file) cannot have more than one public class, interface or combination of both.
  5. The variables in an interface are implicitly public, final and static. If the interface, itself, is declared as public the methods and variables are implicitly public.
  6. Variables cannot be synchronized.
  7. The variables in Java can have the same name as method or class.
  8. A transient variable may not be serialized.
  9. The transient keyword is applicable to variables only.
  10. The native keyword is applicable to methods only.
  11. The final keyword is applicable to methods, variables and classes.
  12. The abstract keyword is applicable to methods and classes.
  13. The static keyword is applicable to variables, methods or a block of code called static initializers.
  14. A native method cannot be abstract but it can throw exception(s).
  15. A final class cannot have abstract methods.
  16. An abstract class might not have any final methods.
  17. All methods of a final class are automatically final.
  18. Interfaces cannot be final and should not be declared abstract.
  19. The visibility of the class is not limited by the visibility of its members. I.e. A class with the entire members declared private can still be declared public.
  20. Interface methods cannot be native, static, synchronized, final, private, protected or abstract. They are implicitly public, abstract and non-static.
  21. The statement float f = 5.0; will give compilation error as default type for floating values is double and double cannot be directly assigned to float without casting. But f=5.0f is ok.
  22. A constrUCtor cannot be native, abstract, static, synchronized or final.
  23. Be careful for static and abstract keyword in the program.
  24. Also be careful for private keyword in front of a class as top level classes or interfaces cannot be private.
  25. friendly is not a java keyword. This is often used as an alternate word in java literature to indicate the default access level by placing no modifier like public, private or protected in front of members of classes and interfaces.
  26. A local variable, already declared in an enclosing block and therefore visible in a nested block, cannot be redeclared in the nested block.
  27. Array in Java can be declared and defined like ---
     int[] count = null; int []count = null; int count[] = null;
     int count[] = new int[50]; int count[] = {5,10,15,20,25}
  SECTION 2: FLOW CONTROL, ASSERTIONS, AND EXCEPTION HANDLING
  28.Three types of statements regarding flow controls are used in Java:
     * Selection statements ' if…else, switch…case, try…catch…finally
     * Iteration statement ' while, do…while, for
     * Transfer statement ' return, break, continue
  29.The argument to switch can be either byte, short, char or int. Be careful about long, float, double or boolean as argument to switch.
  30.The eXPression for an if and while statement in Java must be a boolean.
  31.Breaking to a label (using break ;) means that the loop at the label will be terminated and any outer loop will keep iterating. While a continue to a label (using continue ;) continues execution with the next iteration of the labeled loop.
  32.The if() statement in Java takes only boolean as an argument. Note that if (a = true){}, provided a is of type boolean is a valid statement then code inside the if block will be executed otherwise skipped.
  33.The (-0.0 == 0.0) will return true, while (5.0 == -5.0) will return false.
  34. An assertion is a conditional expression that should evaluate to true if and only if your code is working correctly. If the expression evaluates to false, an error is signaled. Assertions are like error checks, except that they can be turned completely off, and they have a simpler syntax.
  34.AssertionError is the immediate subclass of java.lang.Error.
  35.assert is a java keyword from JDK1.4. So it cannot be used as an identifier from JDK1.4 or later. But as other JDK versions (JDK1.3 or earlier) had no keyword named assert, an interesting backward compatibility problem arises for those programs that used assert as a java identifier.
  36.Assertion checks can be turned on and off at runtime. By default, assertion mechanism is turned off. When assertions are off, they don't use system resources.
  37.The command for compiling a source using Java's new assertion feature is javac -source 1.4 filename.java. But if -source argument is not mentioned like javac filename.java, it will be assumed like javac -source 1.3 filename.java so that existing code compiles correctly even if it uses assert as a regular identifier.
  38.Remember that Assertions can be enabled and disabled for specific packages as well as specific classes. For example, assertions can be enabled in general but disabled for a particular package.
  39.One of the most common uses of assertions is to ensure that the program remains in a consistent state. Assertions are not alternative to exception handling rather complementary mechanism to improve discipline during development phase.
  40.Assertions may be used in the situations like:
    * to enforce internal assumptions about aspects of data structures.
    * to enforce constraints on arguments to private methods.
    * to check conditions at the end of any kind of method.
    * to check for conditional cases that should never happen.
    * to check related conditions at the start of any method.
    * to check things in the middle of a long-lived loop.
  41.Assertions may not be used in the situations like:
    * to enforce command- line usage.
    * to enforce constraints on arguments to public methods.
    * to enforce public usage patterns or protocols.
    * to enforce a property of a piece of user supplied information.
    * as a shorthand for if ( something) error();
    * as an externally controllable conditional.
    * as a check on the correctness of your compiler, Operating system, or hardware, unless you have a specific
  42.reason to believe there is something wrong with it and is in the process of debugging it.
  43.An overriding method may not throw a checked exception unless the overridden method also throws that exception or a superclass of that exception.
  44.The java.lang.Throwable class has two subclasses: Exception and Error.
  45.An Error indicates serious problems that a reasonable application should not try to catch. Most such errors are abnormal conditions.
  46.The two kinds of exceptions in Java are: Compile time (Checked) and Run time (Unchecked) exceptions. All subclasses of Exception except the RunTimeException and its subclasses are checked exceptions.
    Examples of Checked exception: IOException, ClassNotFoundException.
    Examples of Runtime exception: ArrayIndexOutOfBoundsException, NullPointerException, ClassCastException, ArithmeticException, NumberFormatException.
  47.The unchecked exceptions do not have to be caught.
  48.A try block may not be followed by a catch but i

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
久久夜精品香蕉| 色999日韩欧美国产| 欧美电影在线播放| 久久亚洲私人国产精品va| 亚洲精品美女久久| 亚洲激情 国产| 51精品国产黑色丝袜高跟鞋| 一区二区日韩精品| 精品五月天久久| 日韩午夜在线视频| 国产丝袜精品视频| 久久福利视频网| 高清一区二区三区四区五区| 久久精品久久精品亚洲人| 自拍偷拍亚洲区| 亚洲精品99999| 国产精品户外野外| 欧美精品电影在线| 97国产精品久久| 亚洲国产成人在线视频| 日韩精品亚洲视频| 亚洲娇小xxxx欧美娇小| 久久69精品久久久久久国产越南| 国产亚洲欧美视频| 日韩成人网免费视频| 国产激情久久久久| 国产一区二区欧美日韩| 性色av一区二区三区免费| 国产精品99一区| 日韩欧美高清视频| 国产日韩欧美综合| 北条麻妃在线一区二区| 久久久久久久久久久人体| 亚洲美女av黄| 欧美精品电影在线| 日韩一区二区在线视频| 日韩久久精品成人| 尤物精品国产第一福利三区| 欧美一级高清免费播放| 国产999在线观看| 日韩成人在线网站| 精品国产乱码久久久久久虫虫漫画| 成人淫片在线看| 国产精品极品美女粉嫩高清在线| 国产精品美乳在线观看| 精品久久久精品| 亚洲人av在线影院| 成人在线精品视频| 欧美在线影院在线视频| 欧美在线视频免费观看| 日韩成人网免费视频| 欧美电影在线观看| 俺去了亚洲欧美日韩| 国产精品第三页| 97免费中文视频在线观看| 亚洲人成电影网站色…| 18一19gay欧美视频网站| 69久久夜色精品国产7777| 中文一区二区视频| 亚洲第一男人av| 国产精品观看在线亚洲人成网| 久久久999国产| 亚洲香蕉伊综合在人在线视看| 国产精品久久久久久久app| 伊人久久综合97精品| 91欧美精品成人综合在线观看| 曰本色欧美视频在线| 日韩成人高清在线| 人妖精品videosex性欧美| 欧美激情日韩图片| 国产女人精品视频| 国产亚洲欧美日韩一区二区| 欧美激情中文字幕在线| 日韩欧美亚洲国产一区| 国产99在线|中文| 伊人一区二区三区久久精品| 亚洲成av人片在线观看香蕉| 欧美www视频在线观看| 国产午夜一区二区| 国产亚洲欧洲高清一区| 在线观看精品国产视频| 欧美高清在线视频观看不卡| 欧美乱大交做爰xxxⅹ性3| 91人成网站www| 中文字幕亚洲情99在线| 青青草精品毛片| 91国产美女视频| 久热在线中文字幕色999舞| 国产精品亚洲网站| 精品毛片三在线观看| 久久久999国产精品| 91成人国产在线观看| 亚洲少妇激情视频| 亚洲视频999| 久久精品久久精品亚洲人| 亚洲美女在线视频| 日韩精品极品在线观看播放免费视频| 色琪琪综合男人的天堂aⅴ视频| 国产欧美婷婷中文| 日韩精品在线看| 九九热最新视频//这里只有精品| 国产成人午夜视频网址| 亚洲福利影片在线| 日韩理论片久久| 精品中文字幕乱| 亚洲女人被黑人巨大进入| 欧美一区二区影院| 色噜噜久久综合伊人一本| 日韩美女福利视频| 一区二区三区四区精品| 深夜福利亚洲导航| 亚洲3p在线观看| 欧美日韩亚洲一区二区| 亚洲成人黄色网| 欧美一乱一性一交一视频| 久久av在线看| 欧美精品日韩www.p站| 国产免费一区二区三区香蕉精| 亚洲精品aⅴ中文字幕乱码| 国产成人久久久| 久久99精品久久久久久青青91| www.亚洲男人天堂| 一区二区成人av| 性亚洲最疯狂xxxx高清| 精品亚洲国产成av人片传媒| 精品福利一区二区| 国产精品高清网站| 久久综合伊人77777尤物| 亚洲国产精久久久久久久| 欧美亚洲视频一区二区| 欧美电影免费在线观看| 久久久精品日本| 久久人人爽人人| 国产精品久久久久久久一区探花| 欧美风情在线观看| 国产精品久久激情| 海角国产乱辈乱精品视频| 国产一级揄自揄精品视频| 亚洲网站在线播放| 欧美日韩999| 久久久久久久国产| 另类美女黄大片| 国产香蕉97碰碰久久人人| 欧美综合激情网| 国产精品国产三级国产专播精品人| 成人午夜在线影院| 久久乐国产精品| 日韩欧美国产中文字幕| 精品毛片网大全| 欧美激情videoshd| 国产视频一区在线| 欧美成在线视频| 国产91精品高潮白浆喷水| 欧美日韩一区二区免费在线观看| 欧美电影第一页| 国产成人久久精品| 中文字幕精品久久久久| 久久久久在线观看| 欧美性xxxx| 最好看的2019的中文字幕视频| 国产剧情久久久久久| 亚洲国产欧美一区二区三区同亚洲| 欧美视频在线看| 另类专区欧美制服同性|