Tell me why, if you write:
public static void main(String[] args) { long i = 0xa; System.out.print(i); then it displays 10. And if so:
public static void main(String[] args) { long i = 0xba; System.out.print(i); Does it display 186? In short, explain how the assignment of a variable's value to this way of writing works.