hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Static class vs Normal Class when to use
Date Thu, 28 Mar 2013 04:05:41 GMT
See
http://stackoverflow.com/questions/1353309/java-static-vs-non-static-inner-class

I believe Josh Bloch covers this in his famous book.

On Wed, Mar 27, 2013 at 9:01 PM, Sai Sai <saigraph@yahoo.in> wrote:

> In some examples/articles sometimes they use:
> public static class MyMapper
>
> and sometimes they use
>
> public class MyMapper
>
> When/why should we use static vs normal class.
>
> Thanks
> Sai
>

Mime
View raw message