Suppose there is a code.
This code works in IE, Chrome and Firefox, but does not work in Opera(version is 10.60). What should be done to overcome these constraints?
Code:
FormItem checkItem = new CheckboxItem(); boolean val = (checkItem instanceof CheckboxItem) // result is FALSE String name = checkItem.getClass().getName() // got Error - TypeError: Cannot convert 'h' to object String method = (new Throwable()).getStackTrace()[1].getMethodName() // got Error - TypeError: Cannot convert 'nf(new qf)[1]' to object
Comment