Java First Week Learning summary

Source: Internet
Author: User

Chapter One: Java is a generic term for the Java object-oriented programming language (hereinafter referred to as the Java language) and the Java platform introduced by Sun Microsystems Corporation. Co-developed by James Gosling and co-workers, and was formally launched in 1995. Originally known as Oak, Java was designed for embedded chips in consumer electronics in the 1991. Renamed Java in 1995 and redesigned to develop Internet applications. Java-enabled HotJava browser (Java applet support) shows the charm of Java: Cross-platform, dynamic web, Internet computing. Since then, Java has been widely accepted and promoted the rapid development of the web, commonly used browsers support Javaapplet. Java technology, on the other hand, is constantly being updated. Since the advent of Java is very popular, rapid development, the C + + language to form a strong impact. In the global cloud computing and mobile Internet industry environment, Java has a significant advantage and broad prospects.       2010 Oracle Company acquires Sun Microsystems. Java is divided into three systems, namely Java SE (J2se,java2 Platform standard Edition, Standards edition), Java EE (J2ee,java 2 Platform, Enterprise Edition, Corporate Edition),       Java ME (J2me,java 2 Platform micro Edition, mini version). Sun's interpretation of the Java programming language is that the Java programming language is a simple, object-oriented, distributed, explanatory, robust, secure and system-independent, portable, high-performance, multithreaded, and static language. The Java platform is a Java language-based platform. Such a platform is very popular. So Microsoft has launched a competition with the company. NET platform and the C # language that mimics Java. Java is a well-functioning, general-purpose programming language that can be used to develop reliable and demanding applications. Basic meaning;Abstract class: A class that specifies that 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]polymorphic Classes: In Java, the object variable is polymorphic. Multiple inheritance is not supported in Java.Interface: The interface in Java is the declaration of a series of methods, is a collection of methods features, an interface only the methods of the characteristics of the method is not implemented, so these methods can be implemented in different classes, and these implementations can have different behavior.chapter II;What to note when writing Java programs; 1 case sensitive: Java is case-sensitive, which means that the identifier Hello is different from hello. 2 class Name: For all classes, the first letter of the class name should be capitalized. If the class name consists of several words, the first letter of each word should be capitalized, such as: Myfirstjavaclass 3 Method Name: All method names should start with lowercase letters.  If the method name contains several words, the first letter of each subsequent word is capitalized. 4 Source file name: The source file name must be the same as the class name. When saving the file, you should use the class name to save the filename (remember that Java is case sensitive), the file name suffix is. Java (causes a compilation error if the file name and class name are not the same) 5 Main method entry: All Java programs are owned by public static void main ( String args[]) method to begin execution.

Java First Week Learning summary

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.