Basic Java Concepts

Source: Internet
Author: User

The Java language is an object-oriented programming language, and classes are the basic building blocks of Java programs, and all statements in a Java program appear in a class.

Object-oriented is a way of dealing with problems, in essence, human's daily intuitive thinking. The idea of object-oriented programming consists of two basic concepts: objects and classes.

The so-called "object" is the "thing" in daily life. In other words, an object is something that represents the real world, and an object represents something. The object has two main components, properties, and behaviors. The property of an object is what the object is made of, and the object's behavior is what the object can do.

Class is a template for generating objects that represents a "pattern" or "template" that produces various things in real life.

Java is a compiled and interpreted language, which absorbs the characteristics of both compiled and interpreted languages, and writes Java programs to write classes. Class can have only one public class in a. java file. The file name of the Java file must be the name of the public class declared in the file.

The compiled Java code is called the bytecode. The bytecode appears in the form of a. class file.

The JVM calls the main () method to start executing the Java program. The signature of the main () method is public static void main (string[] args).

Basic Java Concepts

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.