반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 재귀함수
- inorder
- bccard
- 대이터
- web 사진
- tensorflow
- Keras
- 자료구조
- vscode
- java역사
- 결합전문기관
- cudnn
- broscoding
- paragraph
- 데이터전문기관
- pycharm
- 머신러닝
- html
- classification
- postorder
- web 용어
- C언어
- CES 2O21 참여
- 웹 용어
- web
- web 개발
- discrete_scatter
- CES 2O21 참가
- KNeighborsClassifier
- mglearn
Archives
- Today
- Total
bro's coding
java.Object Serialization.transient(직렬화 제외) 본문
반응형
transient
package step6;
import java.io.Serializable;
public class Account implements Serializable {
private static final long serialVersionUID = -6327719185686084355L;
private String name;
private int money;
// password 직렬화 제외
// transient keyword : 직렬화 대상에서 제외
private transient String password;
public Account(String name, int money, String password) {
super();
this.name = name;
this.money = money;
this.password = password;
}
public int getMoney() {
return money;
}
public void setMoney(int money) {
this.money = money;
}
public static long getSerialversionuid() {
return serialVersionUID;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
반응형
'[IT] > java' 카테고리의 다른 글
java.Tread.scheduling (0) | 2021.03.17 |
---|---|
java.Tread.sleep (0) | 2021.03.17 |
java.Thread (0) | 2021.03.17 |
java.FileMove(파일 이동) (0) | 2021.03.16 |
java.Object Serialization(객체 직렬화)/Object DeSerialization(객체 역직렬화) (0) | 2021.03.15 |
java.SerialVersionUID (0) | 2021.03.15 |
java.byte파일 컨트롤 (0) | 2021.03.15 |
java.문자열 파일 컨트롤 (0) | 2021.03.15 |
Comments