Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {
    public static void main(String[] args) {
        String s = "65";

        byte b = Byte.valueOf(s);

        System.out.println(b);

        // Causes a NumberFormatException since the value is out of range
        System.out.println(Byte.valueOf("129"));
    }
}