@ce-neha-RCoDQE
•
Oct 25, 2024
Oct 25, 2024
1.3K
Downcasting in java
Hi ,
-------------------------------------------------------------------------
Downcasting executes in the following class "A"
class A
{
public static void main(String ss[])
{
int p=2;
short d=(short)p; //-------------------->downcasting
System.out.println((short)d);
}
}
But a run...