Question: public class Oops 2 { public static void main ( String [ ] args ) { int x; System.out.println ( x is x

public class Oops2{
public static void main(String[] args){
int x;
System.out.println("x is x");
int x =15.2; // set x to 15.2
System.out.println("x is now + x");
int y; // set y to 1 more than x
int y = int x +1;
System.out.println("x and y are + x + and + y");
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!