What is * in java? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 2

What is * in java?

Why we use *in java?

31st Oct 2020, 6:48 AM
Study Tracker
Study Tracker - avatar
2 Antworten
+ 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