springmvc controller public or default protected
<p>what's different in public protected method?</p>

<pre><code>    @RequestMapping("/")
    String home(){
       "Hello World!"
    }

    @RequestMapping("/")
    public String home(){
       "Hello World!"
    }
</code></pre>

<p>Is it just mean public and protected in java?</p>