Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
HDFS >> mail # user >> Static class vs Normal Class when to use


Copy link to this message
-
Static class vs Normal Class when to use
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
+
Ted Yu 2013-03-28, 04:11
+
Sai Sai 2013-03-28, 05:01
+
Ted Dunning 2013-03-28, 07:54
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB