Summary of java error processing


import java.util.*;
import java.io.IOException;
public class Main {
    public static void main(String[] args) throws IOException {
        // Your code here!
        /*int a =0/0;
        System.out.println("XXXXXXXX");*/
        
        
    String str="simizu";//If you set this to null, an exception will occur, but since it is an unchecked exception, you do not have to try it.
    int i = str.length();

    System.out.println(str + "Is" + i + "letter");
    
    //throw new StackOverflowError("StackOverflowError");Memory overflow You can't catch it here, you can't catch it if the server goes down in the first place
    throw new IOException("IOException"); //Check exception: Try is required. It's okay because it's thrown next to the method, but if it's not thrown by the method, try catch is required.
    }
    
   
}

}

Reference material
https://freelance-jak.com/technology/java/1157/


Recommended Posts

Summary of java error processing
Summary of Java support 2018
[Java11] Stream Summary -Advantages of Stream-
[Java] Summary of regular expressions
[Java] Summary of operators (operator)
Summary of Java language basics
[Java] Summary of for statements
Summary of Java Math class
[Java] Summary of control syntax
[Java] Summary of design patterns
[Java] Summary of mathematical operations
[For beginners] Summary of java constructor
Basic processing flow of java Stream
Summary of object-oriented programming using Java
[Java Silver] Summary of access modifier points
Summary of in-house newcomer study session [Java]
Java knowledge summary
Java Generics Summary
[Processing x Java] Construction of development environment
[java] Summary of how to handle char
Java related summary
Summary of changes other than JEP of Java10
Today's java error
[Java] Personal summary of conditional statements (basic)
Java thread processing
Java string processing
[Java] [Maven3] Summary of how to use Maven3
java error countermeasures
Java Summary of frequently searched type conversions
[Java] Multi-thread processing
[Java] Overview of Java
Summary of Java Math.random and import (Calendar)
[Java] Stream processing
java iterative processing
Summary of Java environment settings for myself [mac]
[Java] Personal summary of classes and methods (basic)
[Java] Summary of how to abbreviate lambda expressions
[Note] Java: Speed of List processing by purpose
[Java] Classification memo of compilation error and run-time error
Expired collection of java
Predicted Features of Java
Java 12 new feature summary
[Java] Significance of serialVersionUID
[Summary] Java environment preparation
effective java 3rd summary
NIO.2 review of java
Review of java Shilber
Java 13 new feature summary
Summary of OpenJDK sources
java --Unification of comments
Summary of jar files
Java Math.sqrt Error Pit
Java static [Personal summary]
History of Java annotation
Summary of using FragmentArgs
java (merits of polymorphism)
rails error resolution summary
Thread safe summary ~ Java ~
Personal summary about Java
JAVA constructor call processing
NIO review of java