class A{
String value = "test"; A(String val){
this.value = val;
}
}
public class TestClass {
public static void main(String[] args) throws Exception {
new A("new test").print();
}
}
Select 1 option
A. test
B. new test
C. It will not compile.
D. It will throw an exception at run time.
If you want to solve the questions together with the experts and understand the concepts better, please contact us using the contact form or WhatsApp numbers. Selected people get to do that without any additional charges.