Question: ( 2 ) Given: public class X Eprivate int a ; public int b ; . public static int c ; 3 Given: Class Y

(2) Given:
public class X
Eprivate int a;
public int b;.
public static int c;
3
Given:
Class Y has main(...
Valid or invalid:
x@bj= new );
-bj*a=20j
0bj'*b=30',
(3) main(...)(Valid or invalid)
boolean flg= objl obj2;
(4) From #2:
main (...)
X obj= new X();
Obj.c=10;
X.c=20;
Valid or invalid
 (2) Given: public class X Eprivate int a; public int b;.

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!