public class Main
{
public static void main(String args[])
{
process(true ? 1 : 2L);
}
static void process(Object object)
{
System.out.println(object instanceof Integer);
}
}
My expected output is true.
But actual out put is false.
My understanding is between integral data types the largest type will be assigned. If so what is this called?