title: What is Type & TypeToken?
body: <p>I have the following method in my project</p>
  
  <pre><code> public void execute(final int apiId, final ResponseHandler handler, final Type type)
  </code></pre>
  
  <p>and the type is determined using TypeToken as follows</p>
  
  <pre><code>final Type serviceErrorType = new TypeToken&lt;&gt;() {
      }.getType();
  </code></pre>
  
  <p>I went through this <a href="https://static.javadoc.io/com.google.code.gson/gson/2.6.2/com/google/gson/reflect/TypeToken.html" rel="noreferrer">link</a> here but couldn't understand completely about <code>Type</code> and <code>TypeToken</code></p>
  
  <p>Can anyone please share a link or help understand these two concepts?</p>