title: What is the Use of TypeCasting in java
body: <p>we can achieve the output in two ways one is typecasting and one is without typecasting</p>
  
  <pre><code>A a=new B() // without typecaste
  
  A a  = (A)a// with Typecaste
  </code></pre>
  
  <p>in both ways we get same output.so, what is the use of typecasting</p>