Can we convert object to int in Java?

In Java, we can use the Integer wrapper class functionality to convert an object to int . If we are given an object of the Object class, we will convert it into int by simply casting it into ( Integer ). We can then return the converted int .7 Oca 2022

Sizin İçin Seçtik  Singleton obje nedir?

Leave a Reply

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