The name given to a variable is known as an identifier. As the term suggests, the way the compiler…
How we initialize ArrayList in java