title: Android: Can I have generic return type in AsyncTask - doInBackGround
body: <p>My AsyncTask call web service &amp; get the results in POJO. Now that POJOs are of different type. &amp; AsyncTask is only one. So can I have Generic return type like</p>
  
  <pre><code>protected T &lt;T&gt; doInBackground(Class&lt;T&gt; ... classTypes) {
   //Code to call webservice &amp; get pojo
   return calssType.cast(pojoObject)
  }
  </code></pre>