Manish Singh

Manish Singh

  • NA
  • 7.6k
  • 4.4m

Why can not a button object be created as Button bt = "abc"

Dec 14 2011 11:53 AM
Hi.......

Ques: I have  create a String object as below  String str = "abc" & String str = new String("abc")  Why can not a button object be created as  Button bt = "abc"? Why is it compulsory to create a button object as Button bt = new Button("abc")? Why this is not compulsory in String's case? please explain...

Answers (2)