- 1

Wich of the programs is wrong?and why?

For the class defined as follows public class Bidon{ int x;} Wich of the programs is wrong?and why? ▪︎Bidon a=new Bidon(3); ▪︎Bidon a=new Bidon() ; String s=a.toString(); ▪︎Bidon a=new Bidon() ; boolean b=a.equal("bonjour"); ▪︎Bidon a=new Bidon() ; boolean b=a.equal(a);

22nd Mar 2021, 12:46 PM
hossin Chorfi
hossin Chorfi - avatar
3 Answers
+ 1
Post a link to a MWE code please https://www.sololearn.com/post/75089/?ref=app
22nd Mar 2021, 1:33 PM
Ipang
+ 1
hossin Chorfi Duplicate question I just answered on the other one please delete.
22nd Mar 2021, 2:42 PM
D_Stark
D_Stark - avatar