[# 1 Java] Basics of Java-Major premise before studying-

Hello, this is Moe. This time I would like to write about Java, which inspired me to come into contact with programming languages.

What is Java in the first place?

Java is one of the programming languages that needs to be compiled and used to create programs. With Java, you can develop a variety of programs that run on different computers.
Programmers who have mastered Java are currently the most sought after in the market, so if you think about the future, you may want to start studying Java for the time being.
However, Java has some unusual characteristics compared to other programming languages.

--Java features --Easy to learn and standard basic grammar --Supports object-oriented programming to support large-scale development --A richly prepared and convenient instruction group --Versatility that works the same in any environment of Windows, Mac, Linux

Java works everywhere! Is a language created with the motto. Therefore, instead of translating it into a machine language that can be understood by a specific computer, we create an intermediate language that can be used by any computer.
When it is executed, the Java Virtual Machine (Java VM) installed on each computer translates it into machine language and executes it. It is easy to understand if you have the image that you must first translate into English and then into another language instead of translating into "Japanese → Chinese" or "Japanese → German" to execute the program. think.

Let's write Java source code

A Java file can be completed by adding the extension ".java" with a text editor, but it cannot be executed unless an execution environment is prepared. I built the environment by referring to Using AdoptOpenJDK.

Java integrated development environment

After creating a file, Java translates a program called compilation into the source code, converts it to byte code, and then executes it. By the way, the translation software that performs this translation work is called a compiler. After compiling, it also instructs software called an interpreter to execute bytecode. This interprinter has a mechanism called JavaVM inside, and converts bytecode into machine language that the CPU can understand.

Programs written by humans are executed only after being translated so that the computer can understand them in this way, but it is rare to develop such settings by themselves.
Actually, it is done using the "Integrated Development Environment (IDE)" that makes it possible to improve the efficiency of program development, such as "coding", "compilation", "testing", and "debugging" required for Java development. There are several types of this, but let's set up a development environment that suits you. By the way, I use Eclipse and IntelliJ IDEA, and I mainly use Eclipse. In selecting the development environment, I read [For beginners] Explanation of Java development tool types with images.

Framework

Program development has a convenient environment called an integrated development environment, and there is also a framework that assists in its development. This is a system in which the entire processing flow is implemented in advance, and some specific processing in it can be implemented and fitted by yourself. By utilizing this framework, developers can improve the efficiency of development.

Is the basic story of Java like this? I will post again!

Recommended Posts

[# 1 Java] Basics of Java-Major premise before studying-
Basics of character operation (java)
Summary of Java language basics
Studying Java ―― 3
Studying Java ―― 9
Studying Java ―― 4
Studying Java -5
Studying Java ―― 1
Studying Java # 0
Java basics
Java basics
Studying Java ―― 8
Studying Java ②
Studying Java ―― 7
Studying Java ―― 2
Studying Java ①
Java basics
Studying Java -10
Memorandum of new graduate SES [Java basics]
[day: 5] I summarized the basics of Java
Looking back on the basics of Java
Basics of java basics ② ~ if statement and switch statement ~
java programming basics
Studying Java 8 (Optional)
Basics of Ruby
Java JAR basics
Object-oriented (Java) basics
Basics of threads and Callable in Java [Beginner]
Studying java9 (jShell)
Studying Java 8 (Stream)
Java concurrency basics
[Introduction to Java] Basics of java arithmetic (for beginners)
[Java] Overview of Java
[For beginners] Quickly understand the basics of Java 8 Lambda
[In-house study session] Basics of Java annotation (2017/11/02) ~ Under construction ~
I summarized the types and basics of Java exceptions
Expired collection of java
Predicted Features of Java
Studying Java 8 (Collector / Collectors)
NIO.2 review of java
Studying Java 8 (see method)
Java programming basics practice-array
History of Java annotation
Studying Java 8 (see constructor)
java (merits of polymorphism)
Java Network Basics (Communication)
Basics of try-with-resources statement
Studying Java ~ Part 8 ~ Cast
Studying Java 8 (lambda expression)
NIO review of java
Muscle Java Basics Day 1
[Java] Three features of Java
Summary of Java support 2018
I tried to summarize the basics of kotlin and java