primitive ,non primitive and static and non static
1)What is primitive data type? All variables must first be declared before they can be used Used for store and manipulating the data . Primitive types in Java are predefined and built into the language, while non-primitive types are created by the programmer Primitive data types are usually stored in the stack*[TBD]* memory Primitive types cannot be null, which can help avoid [TBD] NullPointerException that can occur with object types 2) Why is string non primitive? It’s a class it provides built in methods for text manipulation Non-primitive data structures are typically stored in heap memory*[TBD]* 3)static keyword static int count = 0; The static keyword in Java is mainly used for memory management. The static keyword in Java is used to share the [TBD] same variable or method of a given class. Class-Level mainly used for memory management. Ex: static int count = 0; // Shared counter for all instances 4)non static keyword int count = 0; int instanceVariable; non-static" refers to members (variables or methods) that are not declared with the static keyword. • These variables are declared without the static keyword and are associated with each object of a class. [TBD]

1)What is primitive data type?
All variables must first be declared before they can be used
Used for store and manipulating the data .
Primitive types in Java are predefined and built into the language, while non-primitive types are created by the programmer
Primitive data types are usually stored in the stack*[TBD]* memory
Primitive types cannot be null, which can help avoid [TBD] NullPointerException that can occur with object types
2) Why is string non primitive?
It’s a class it provides built in methods for text manipulation
Non-primitive data structures are typically stored in heap memory*[TBD]*
3)static keyword static int count = 0;
The static keyword in Java is mainly used for memory management. The static keyword in Java is used to share the [TBD] same variable or method of a given class.
Class-Level
mainly used for memory management.
Ex: static int count = 0; // Shared counter for all instances
4)non static keyword int count = 0;
int instanceVariable;
non-static" refers to members (variables or methods) that are not declared with the static keyword.
• These variables are declared without the static keyword and are associated with each object of a class. [TBD]