Welcome to java World
Get new content delivered directly to your inbox.
What is java primitive data types
Data types are used to represent type of the variable & expressions.Representing how much memory is allocated for variable.Specifies range value of the variable. There are 8 primitive data types in java Data Type size(in bytes) Range default values byte 1 -128 to 127 0 short 2 -32768 0 int 4 -2147483648 to 2147483647 0…
What are java identifiers
Every name in java is called identifier such as, Class-name Method-name Variable-name Rules to declare identifier: An identifier contains group of Uppercase & lower case characters, numbers ,underscore & dollar sign characters but not start with number. int abc=10; —> valid int _abc=30; —> valid int $abc=40; —>valid int a-bc=50; —>not valid int 2abc=20; —> Invalid …
- What is java primitive data types
- What are java identifiers
- Escape Sequences in java
- What are Java tokens
- Difference between println() and print() methods in java