Question: //return rule break

```
class Fianalblck
{

    public static void main(String... s)
    {
        //int show

        int x;
        {
            try {
                return 10;
            }
            catch(Exception e)   {

            }
            finally {
                return 20;
            }
        } System.out.println(x);
    }
}

```

Answer: 
Your main method is `void` meaning it can't return anything. If you wish to return a value, create another method that is a returnable type (`boolean, int, double, String,` etc.) then call that method from your main.

It looks like you need to start from the beginning, [here](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/) is a link to a java basics tutorial.

[Here](https://docs.oracle.com/javase/tutorial/java/javaOO/returnvalue.html) is a tutorial on `return`.
Main method **cannot return a value** directly.

```
 Error: Main method must return a value of type void in class first, please
 define the main method as:
 public static void main(String[] args)

```

But you can simply use **return** in a main method.

```
public static void main(String[] args){
...
...
...
return;
}

```