i have one question.
I understand the type conversion in java.But i dont know where to use which conversion.
Below i have given one example,but i don't which is used where?
String s=”27”; int i=Integer.parseInt(s); System.out.println(i); /////////////////////////////////// String s=”27”; int i=(int)s; System.out.println(i);
Although both are doing the same thing,but where to use which conversion?