Types of Variables: Part 2
Enhance your knowledge about the different types of variables available in Java with more exciting examples in this lesson.
Parameters
We have seen different types of variables, and in some cases, we have seen a type of variable called parameters.
We need to remember one key thing about parameters. They are not classified as fields but classified as variables.
Coding example: 22
In the next two examples, we will see how parameters work. The signature for the main()
method in Java also uses parameters.
Get hands-on with 1400+ tech skills courses.