Check out example codes for "java literals w3schools". It will help you in understanding the concepts better.

Code Example 1

15                // Integer literal
10.3959           // Floating-point literal
"Hello, world!"   // String literal

Code Example 2

int // int is a variable the stores numbers
string // a variable for storing text

Learn ReactJs, React Native from