Hello Ranchers!
i understand it's incorrect, how it happens is what i wish to understand.
experts..please explain how is this handled in
java
String b ="a"
creates reference b to string a. how is "a" allocated and assigned to String (a class?)
MyOwnClass c = "a";
..is truly incorrect (or could this be done?), i understand "a" is string and hence couldn't be allocated to MyOwnClass reference type..but how is this decided by compiler?..where could i get compiler directives of java?
this obviously results from my own brains, i am just curious, even when wrong
please guide..
thanks!