Java is a very versatile language, that can be used for object oriented programming (OOP), computation and many other applications. In order to make full use of Java, you need to know how to use variables.
Declaring A Data Type
Declaring your data type is one of the most important things when it comes to strong information. You are essentially warning the program what type of information it should be expecting. Declaring the correct type is important because once you declare a variable as a certain data type it can not be changed. Let’s look at some examples: