Home > Java > JavaBase > body text

what is java program

angryTom
Release: 2019-11-13 11:53:02
Original
4957 people have browsed it

what is java program

What is a java program

A java program is a computer program written in the java language. The entry function is public static void main(String args[]){}, which is executed through jvm after the .class file is generated by the compiler.

Recommended: java tutorial

Entry function analysis:

● This java class is written by java Called by the virtual machine (JVM), so the java class should expose this method, so use public;

● When this method is called by the JVM, it must not be a new object. If the method is called by the object, it should be called directly by the JVM. Therefore, static is used;

● It is meaningless to return something to the JVM, so void is used;

● Finally, the parameters in brackets are passed to the method by the JVM. The details can be obtained from cmd The configuration parameters are passed in from the console or from the run configuration of the development environment IDE (Eclipse).

The source code file of java is saved in the .java file, and is compiled by the compiler to generate a .class file. The java program can be run using the java file name method.

Extension:

Java

is the general name for the programming language and Java platform by Sun Microsystems. The HotJava browser (supporting Java applets) implemented in Java shows the charm of Java: cross-platform, dynamic Web and Internet computing.

The Java platform consists of the Java virtual machine and the Java Application Programming Interface (API). Java is divided into three systems: JavaSE (Java Platform Standard Edition), JavaEE (Java Platform Enterprise Edition), and JavaME (Java Platform Micro Edition).

Computer Program(Computer Program)

A computer program is a set of instructions that a computer can recognize and execute. It runs on an electronic computer and is information that meets certain needs of people. ization tools.

It is written in some programming languages ​​and runs on some target architecture. For example, a program is like an article written in English (programming language). It needs to be read, understood, and marked by a person who understands English (compiler) and who can also read this article (structure system). article. Generally, computer programs based on English text must be compiled and linked into a digital format that is difficult for humans to interpret but can be easily interpreted by computers, and then put into operation.

The above is the detailed content of what is java program. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template