SyntaxFix
Write A Post
Hire A Developer
Questions
String extends Object, which means an Object. Object o = a; If you really want to get as Object, you may do like below.
Object o = a;
String s = "Hi"; Object a =s;