title: Can we redeclare a variable from one type to another (from int to String for example)?
body: <p>I was just curious if we can do something like</p>
  
  <pre><code>int tmpVar;
  tmpVar=myClass.getInt();
  myClass.giveImput(tmpVar);
  
  String tmpVar;  //&lt;&lt;--gives error "Variable 'tmpVar' already defined in this scope"
  tmpVar=myClass.getString();
  myClass.giveImput(tmpVar);
  </code></pre>
  
  <p>Obviously I used a new var name for string, but I was just curious and didn't find anything online if this is possible.</p>
  
  <p>Ps I know the above examples can be shortened to </p>
  
  <pre><code>myClass.giveImput(myClass.getInt());myClass.giveImput(myClass.getString());
  </code></pre>