Java nouns, keywords

Source: Internet
Author: User

Abstract class: A class that prescribes one or more abstract methods must itself be defined as abstract, which is used only to derive subclasses, and cannot be used to create objects. Final class: Also known as the "final class", it can only be used to create objects, not be inherited, and the abstract class is just the opposite, and the abstract class and the final class cannot be decorated with the same class at the same time. Package: A package in Java is a collection of related classes and interfaces that must be created using the keyword package. Inheritance: Java, as an object-oriented programming language, supports the basic concept of inheritance. But Java only supports single inheritance, and Java.lang.Object is the base class for all other classes. [4


Java key WordAbstractabstract method, the modifier of the abstract class asserts whether the condition satisfiesContinuedo not execute the remainder of the loop bodydefaultDefault branch in the switch statement Do- whileLoop statement, the loop body is executed at least onceDouble --bit double-precision floating-point numberenumenumeration type extends indicates that one class is a subclass of another class final represents a defined constantfinallyexecute code whether or not an exception occursfloat +-bit single precision floating point number implements indicates that a class implements an interface instanceof tests whether an object is an instance of a classInterfaceinterface, an abstract type, with only the definition of methods and constantsLong64-bit integer number native representation method implemented in non-Java codeNewAssigning a new class instance package a series of related classes make up a bundlePrivaterepresents a private field, or method, etc., accessible only from within the classprotectedrepresents the Protection type field Publicrepresents a shared property or methodreturnmethod return value Short16-digit numberStaticrepresents a strictfp floating-point comparison that is defined at the class level and used by all instances to share a strict rule super represents a base classSwitchSELECT statement synchronized represents a block of code that can only be accessed by one thread at a time Thiscall the current instance or call another constructorThrowthrows an exception throws defines a method that might throw an exception transient a field that does not serializeTryindicates code block to do exception handlingvoidtag method does not return any valuesvolatiletag fields may be accessed by multiple threads at the same time without synchronizing

Java nouns, keywords

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.