+ 4
Difference
What is the difference between == and .equals()
3 Answers
+ 7
PrimitiveĀ types are the most basic data types available within theJavaĀ language. There are 8: boolean , byte , char , short , int , long , float and double . These types serve as the building blocks of data manipulation inĀ Java. Such types serve only one purpose ā containing pure, simple values of a kind.š®š®š®š®š®š®š®š®š®š®š®š®š®
+ 6
the difference between == and equalsĀ inĀ JavaĀ is that "==" is used to compare primitives whileĀ equals()Ā method is to check equality of objects. String comparison is a common scenario of using bothĀ == and equalsĀ method.
+ 3
what are primitives and why they are called so @ArtemisAthena456?