Advantages and disadvantages of Java


We have summarized the advantages and disadvantages of Java, a wonderful language used for Android and games.



Object-oriented is what makes a program more readable. Intuitive programming is possible by calling the add method (a group of processes) to add to the list. You can do object-oriented programming in Java with classes.

Add an item to the list



A type is the type of value of a variable (string, number, etc.). For example, suppose you have a program created assuming that the variable num contains a number. However, if you mistakenly pass a character string when using that program, an error will occur because it is not a numerical value at runtime. In Java, it cannot be executed if the type is different in the grammar check called compilation. It may be a hassle, but it is a merit to notice before execution.

Example using type

int num;//Numerical value(Integer)Can only be entered. Also, variables cannot be used unless they are declared.
num = "String";// "で囲むとStringを使える。また整数でないのでエラーを出す

int num2;
num2 = num + 1;//Can only be calculated as an integer

Can be run on multiple OSs with one code

You can program without depending on the OS.


Long description

The description is long and a little difficult to read. In the case of learning, I think that you can easily learn by using jshell (Java tool). The following is a program that outputs Hello! To the screen. If you want to run jsell, you can start by typing `` `jshell``` in the terminal.

When writing to a file

public class Main {
    public static void main(String[] args) {

For jshell

System.out.println("Hello, World");

Environment construction is difficult

For windows, to install Java you have to download it from the Oracle homepage, install it and add it to your environment variables. It's a lot of work for beginners. For Ubuntu, it is recommended because it can be completed with sudo apt install openjdk-jdk-11-headless.

in conclusion

You'll understand the essence of object-oriented programming by learning it, not just Java, and you'll find it easy and fun to program. Try it even if you have already learned another language.

Recommended Posts

Advantages and disadvantages of Java
[Swift] Advantages and disadvantages of Storyboard
[Java11] Stream Summary -Advantages of Stream-
[Technical memo] About the advantages and disadvantages of Ruby
About fastqc of Biocontainers and Java
[Java] Judgment of identity and equivalence
After 3 months of Java and Spring training
[Java] Inheritance and structure of HttpServlet class
[Java / Swift] Comparison of Java Interface and Swift Protocol
Java and JavaScript
XXE and Java
[Java] Overview of Java
Summary of Java Math.random and import (Calendar)
[Java] Contents of Collection interface and List interface
Basics of java basics ② ~ if statement and switch statement ~
Discrimination of Enums in Java 7 and above
I will write 5 ways to implement Java Singleton and various advantages and disadvantages
[Java] Personal summary of classes and methods (basic)
[Java] The confusing part of String and StringBuilder
I compared the characteristics of Java and .NET
JAVA: Realizes generation and scanning of various barcodes
Basics of threads and Callable in Java [Beginner]
[Java] Classification memo of compilation error and run-time error
What are the advantages of DI and Thymeleaf?
Java enables extraction of PDF text and images
Expired collection of java
Predicted Features of Java
[Java] Significance of serialVersionUID
Getters and setters (Java)
[Java] Thread and Runnable
NIO.2 review of java
Review of java Shilber
Java true and false
[Java] String comparison and && and ||
java --Unification of comments
History of Java annotation
java (merits of polymorphism)
Java --Serialization and Deserialization
[Java] Arguments and parameters
timedatectl and Java TimeZone
[Java] Branch and repeat
NIO review of java
[Java] Variables and types
[Java] Three features of Java
java (classes and instances)
Summary of Java support 2018
[Java] Overload and override
[Java] Types of comments and how to write them
Summary of ToString behavior with Java and Groovy annotations
Please note the division (division) of java kotlin Int and Int
The comparison of enums is ==, and equals is good [Java]
Organizing the current state of Java and considering the future
Java language from the perspective of Kotlin and C #
[Java] About Objects.equals () and Review of String comparisons (== and equals)
List of frequently used Java instructions (for beginners and beginners)
Use of Abstract Class and Interface properly in Java
Equivalence comparison of Java wrapper classes and primitive types
[Java] [Kotlin] Generically call valueOf and values of Enum
[Java10] Be careful of using var and generics together
[Java] Handling of character strings (String class and StringBuilder class)
Study Java # 2 (\ mark and operator)