Is it bad to use object in Java?

Since Java is strongly typed, you cannot do a whole lot with Object . This is because methods, operators, etc. available to use depend on the static type of the variable. println can accept Object because it only needs to call the toString method.

Sizin İçin Seçtik  How do you create a new object in Java 8?

Leave a Reply

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