---
title: "what is the use of transient keyword in java?"  
description: "what is the use of transient keyword in java?"  
author: "Anonymous User"  
published: 2015-09-10  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/22817/what-is-the-use-of-transient-keyword-in-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# what is the use of transient keyword in java?

Transient keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero forr integers).

## Answers

### Answer by Anonymous User

Transient keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero forr integers).


---

Original Source: https://www.mindstick.com/interview/22817/what-is-the-use-of-transient-keyword-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
