Java Bean Class

// Java Program of JavaBean classpackage geeks;public class Book implements java.io.Serializable{private int id;private String book_name;
//Public Constructor with No Argumentspublic Book(){}//Following are getter & setter methodspublic void setId(int id){this.id = id;}public int getId(){return id;}public void setBook_name(String book_name){this.book_name= book_name;}public String getBook_name(){return book_name;}}

--

--

--

A passionate in Tech https://www.linkedin.com/in/parathantl

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Parathan Thiyagalingam

Parathan Thiyagalingam

A passionate in Tech https://www.linkedin.com/in/parathantl

More from Medium

Java Optional

[Java] Switch evolution.

JAVA Volatile Variables

Java Newsletter — Issue 12