+ 1
sign ?
What does the ? sign mean In java
2 ответов
+ 1
It is commonly used in ternary operator.
int a=10, b=5;
boolean bool = a>b ? true: false;
If a>b is true then true will be assigned to bool or else false will be assigned to bool.
0
It means symbols. And nothing more then that 😐😐