Posts

Non primitive data types in java

Image
Primitive DataType:  Primitive means “very basic”. In Java, primitive datatype refer to basic (self-explanatory, you know it’s an integer when you declare an  int ) datatype such as int, char, short, byte, float, long, double etc. NonPrimitve DataType:  Non primitive datatypes are those which uses primitive datatype as base like array, enum, class etc. Below is example:

Reserved words in java

Words which represent some meaning or functionality are called reserved words In java there are "53" reserved words They are divided into 1. Keywords 2. literals Keywords: They represent certain functionality Literals: They represent certain value Reserved Literals: true false null There are 50 Keywords Two of them are unused Keywords: They are const and goto. and the remaning will be if else switch etc.