- 2

What is * in java?

Why we use *in java?

31st Oct 2020, 6:48 AM
Study Tracker
Study Tracker - avatar
2 Respuestas
+ 4
It can also be used as a wildcard in import statements. Example: import java.util.*; —> To import all classes from the java.util package.
31st Oct 2020, 8:26 AM
_cm_
+ 3
In Java, * is the multiplication operator. It takes the two operands on either side and multiplies them together. Example: 5*3 evalutes to 15.
31st Oct 2020, 6:58 AM
Brian
Brian - avatar