Engineering Full Stack Apps with Java and JavaScript
The following is a valid member variable declaration:
private static final transient int i = 20;
Select 1 option
A. True B. False
A
Although it does not make sense to make static variable transient as static variables are not serialized anyway, it is valid to do so. You can apply all the modifiers to member variables except abstract, native and synchronized. For methods, you cannot apply transient and volatile.
Logged in users see lesser ads and get more features.
If you want to solve the questions together with the experts and understand the concepts better, please contact us using the contact form or WhatsApp numbers. Selected people get to do that without any additional charges.