android - java.lang.Void vs void vs Null -


What is the difference between

zero , zero , and I Rather than null ?

I am asking this because I am looking at the sample Android code where they used zero but eclipse errors (this can not be solved in zero in a variable ).

My code that breaks

  public class MyAsyncTask asyncTask and lt; Zero, zero, boolean & gt; .}   

I use it like this

  MyAsyncTask myAsyncTask = New MyAsyncTask (); MyAsyncTask.execute ((zero), blank); // It breaks "zero can not be solved in a variable"    

< P> You have an extra comma in your code
  myAsyncTask.execute (zero, zero); // ^ Additional comma right here   

In addition, there is no need to insert null to zero because (1) < Code> zero does not have any examples and thus there is no zero object, and (2) casting null anything is useless because of any The zero valid value for the object data type is

The code should rarely be:

  myAsyncTask.execute (null);    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -