Can we cast any other type to Boolean Type with type casting?

By ayush goel in 22 Sep 2023 | 12:42 pm
ayush goel

ayush goel

Student
Posts: 346
Member since: 21 Sep 2023

Can we cast any other type to Boolean Type with type casting?

22 Sep 2023 | 12:42 pm
0 Likes
divas goyal

divas goyal

Student
Posts: 453
Member since: 22 Sep 2023

 In Java, you can cast other numeric types to `boolean` using a conditional expression like `(x != 0)` or `(x > 0)`.


23 Sep 2023 | 04:03 pm
0 Likes

Report

Please describe about the report short and clearly.