Question: plzz answer the correct mcq What is the output class ClassOne static int i = 10 static { i = 20 } public ClassOne(int i)

 plzz answer the correct mcq What is the output class ClassOne
static int i = 10 static { i = 20 } publicplzz answer the correct mcq

What is the output class ClassOne static int i = 10 static { i = 20 } public ClassOne(int i) System.out.println() this is 2 i = 30 } 7 public class ClassTwo public static void main(String[] args) System out printin(Class One I), this i=1 } { i = 30 } } public class Class Two { public static void main(String[] args) System.out.println(ClassOne 1) 2 } OA) 10 OB) 20 OC) 50 OD) 30

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!