Question: what is the difference between a character and an integer in java?
Answer: The difference is the size in byte of the variable, and from there the different values the variable can hold. A char is required to accept all values between 0 and 127 (included). ... An int is required to be at least a 16 bits signed word, and to accept all values between -32767 and 32767.