Difference between Type casting and Up/Down casting in inheritance [Java]?

后端 未结 0 1919
無奈伤痛
無奈伤痛 2021-01-01 11:20

We know the following::

public class Main {
  public static void main(String[] args) {
    int myInt = 9;
    double myDouble = myInt; // casting: int to doub         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题