The article is top notch.. Thank you for such a brilliant explanation!

Small addition here, In Java, ‘char or ‘Character requires 16 bits (or 2 byte) memory because Java uses UNICODE (Universal Code) format which includes regional characters as well (like Chinese, Russian, etc). Whereas in older language like C, ‘char requires 8 bits (or 1 byte) memory because it only supports ASCII (American Standard Code for Information Exchange) characters.

Avinash Tingre

Software Engineer. Jack of all trades; master of none :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store