Java Variables

Variables are containers for storing data values. In Java, there are different types of variables, for example: 1) String – stores text, such as “Hello Techlearn“. String values are surrounded by Double Quotes.2) int – stores integers (whole numbers), without decimals, such as 12345 or -123453) float – stores floating point numbers, with decimals, such as 18.55 or -18.554) char – stores single characters, such as ‘a’ or ‘B‘. Char values are surrounded by Single Quotes5) boolean – … Read more