Answer to Question #20459 in Java | JSP | JSF for nohra
26. Since the readObject method returns a generic object, what must we do with the returned object?
You need to do an Object typecasting Syntax: (classname) generic object The following example casts an instance of the classVicePresident to an instance of the classEmployee; VicePresident is a subclass of Employee with more information, which here defines that the VicePresident has executive washroom privileges: Employee emp = new Employee(); VicePresident veep = new VicePresident(); emp = veep; // no cast needed for upward use veep = (VicePresident)emp; // must cast explicitly
It’s the most wonderful time of the year: Winter Holidays! Thanksgiving dinner was served, Black Friday has finished, and now…
APPROVED BY CLIENTS
I want to sincerely thank you for your help. your work and time that it was completed are more than I could have hoped for and I appreciate your efforts. I look forward to working with you on the next project. which will be in a few months.