Java comparing 2 Strings Vs comparing 2 ints
I was wondering if in Java  

    (a == b) //a, b 2 int  

takes less or equal computer time or operations than

    (a.equals(b)) // a, b 2 String

?

If the code is repeated many times is there an advantage to use int for these comparison (when you know that a and b can be converted)
Java comparing 2 Strings Vs comparing 2 ints
===

I was wondering if in Java  

    (a == b) //a, b 2 int  

takes less or equal computer time or operations than

    (a.equals(b)) // a, b 2 String

?

If the code is repeated many times is there an advantage to use int for these comparison (when you know that a and b can be converted)