How do you check if an int field is empty?

If you are not assigning any value to int default value will be 0. If you want to check for null then make int as Integer in declaration. Then Integer object can be null. So, you can check where it is null or not.

Sizin İçin Seçtik  Is equalsIgnoreCase null safe?

Leave a Reply

Your email address will not be published. Required fields are marked *

How do you check if an int field is empty?

If you are not assigning any value to int default value will be 0. If you want to check for null then make int as Integer in declaration. Then Integer object can be null. So, you can check where it is null or not.

Sizin İçin Seçtik  Will Huawei work with 5G?

Leave a Reply

Your email address will not be published. Required fields are marked *