+ 1

sign ?

What does the ? sign mean In java

21st Apr 2020, 5:17 PM
ilyes kesri
ilyes kesri - avatar
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.
21st Apr 2020, 5:35 PM
Avinesh
Avinesh - avatar
0
It means symbols. And nothing more then that 😐😐
21st Apr 2020, 5:25 PM
Ayush Kumar
Ayush Kumar - avatar