intermediateCore Java Fundamentals265 of 436
What is the transient keyword?
Tests whether you know transient marks a field to be skipped during default Java serialization, used for fields that are derived, sensitive, or simply not serializable (like a Thread or Socket reference) -- the field survives in memory but comes back as its default value after deserialization.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response