12.3 Object Serialization in java | Serializable Interface

  Рет қаралды 301,485

Telusko

Telusko

Күн бұрын

Пікірлер: 93
@RaviKumar-n8k6g
@RaviKumar-n8k6g 11 ай бұрын
the way of teaching via is code is really understandable more than read a theory in 30 minutes,thanks i will continue to watch ur videos..
@amanmishra98apr
@amanmishra98apr 4 жыл бұрын
Very useful lecture for me...Thank you sir, I'm following you from 3 years.
@brunofilgueiras3518
@brunofilgueiras3518 6 жыл бұрын
man, thanks for this material, the way you explained, the sequence of each idea was just perfect.
@Govindyatnalkar
@Govindyatnalkar 4 жыл бұрын
You and Durga sir are wizards in JAVA!!!
@pulkitkaushik4539
@pulkitkaushik4539 3 жыл бұрын
Java Brains wants to know your location
@nehamakeovers4704
@nehamakeovers4704 2 жыл бұрын
At 2:15, you mentioned, Save obj1 = obj will create a copy of obj. It's not correct. obj2 will point to the same object as obj, it is just a reference; no copying occurs here.
@dskundan
@dskundan Жыл бұрын
Excellent Example, just Legend!
@spiritualquest6092
@spiritualquest6092 Жыл бұрын
Super explanation, thanks for your time!
@foodfairyshi
@foodfairyshi 2 жыл бұрын
best explanation. Thank you
@bharatmakkar9706
@bharatmakkar9706 10 ай бұрын
Simple + effective
@NexGenSlayer
@NexGenSlayer 4 жыл бұрын
You shouldn't keep saying the "NULL" object has a value of zero -- it is simply null. There is a big difference in these two things.
@walkerscoral
@walkerscoral 2 жыл бұрын
Yes thank you CS 101
@higiniofuentes2551
@higiniofuentes2551 7 ай бұрын
Thank you for this very useful video!
@A_Dark_Knight
@A_Dark_Knight 3 жыл бұрын
you r my best teacher
@damodaranm3044
@damodaranm3044 Жыл бұрын
such a badass explaination
@slobodantajisic2762
@slobodantajisic2762 6 жыл бұрын
It is strongly recommended that all serializable classes explicitly declare serialVersionUID values, since the default serialVersionUID computation is highly sensitive to class details that may vary depending on compiler implementations, and can thus result in unexpected InvalidClassExceptions during deserialization...
@animesubber7136
@animesubber7136 4 жыл бұрын
how to do so?
@animesubber7136
@animesubber7136 4 жыл бұрын
private static final long serialVersionUID = 4L; insinde the class with implements serialization
@mekings0422
@mekings0422 4 жыл бұрын
This is an amazing tutorial, exactly what I was looking for... thanks a lot bro
@kushalupreti509
@kushalupreti509 4 жыл бұрын
You are a god.
@TheSubhadipMondal
@TheSubhadipMondal 3 жыл бұрын
Thank you... concept got cleared
@ultimatehuzefa
@ultimatehuzefa 3 жыл бұрын
The best✨
@ayushyadav4180
@ayushyadav4180 3 жыл бұрын
great tutorial man
@muskandahiya6257
@muskandahiya6257 4 жыл бұрын
He haven't closed the objectoutput stream
@premkumar-jz4di
@premkumar-jz4di 2 жыл бұрын
super sir well explained
@SirToniTheFirst
@SirToniTheFirst 6 ай бұрын
Hi John, can you please make a video about serialization, I don't understand a thing about it and the tutorials on youtube are hard to understand, they're old too. I hope you see this, thanks a lot, you've helped me a lot in java
@natsnettesfamariam7868
@natsnettesfamariam7868 5 жыл бұрын
Thank you Telusko. You are really good teacher. I always see your tutorials. in this example are we saving the object over a network???????
@SivaNagaSureshKatarii
@SivaNagaSureshKatarii 4 жыл бұрын
Not exactly, Here we are saving the object in a text file(Serializing). After saving the file, you can transfer the file (containing our object) over network. After receiving the file from the other end of network, we can read the object(De-Serialize) from the received file. In this particular scenario, both serialization and de-serialization are done in the same machine(without our network step involved).
@adilsaju
@adilsaju 5 жыл бұрын
Awesome video man. Keep it up.
@ShivamKendre-fc3su
@ShivamKendre-fc3su 4 ай бұрын
great video
@vladanulardzic5859
@vladanulardzic5859 5 жыл бұрын
Well done ! Keep on.
@hwangclara4024
@hwangclara4024 6 жыл бұрын
Can you please explain Serialization with static variables and transient? It will be better.
@fatimaadreeta
@fatimaadreeta 3 жыл бұрын
great video. I just wanted to ask what is the difference between ObjectOutputStream and DataOutputStream?
@mohammedviso2269
@mohammedviso2269 7 жыл бұрын
Great tutorial.......Thanks
@clawciita
@clawciita 6 жыл бұрын
great video! just what I was looking for
@slonbeskonechen8310
@slonbeskonechen8310 4 жыл бұрын
Awesome!!! Thank you!
@akhileshagrhari924
@akhileshagrhari924 2 жыл бұрын
Thank you Telusko for the amazing explanation. I just got a doubt while watching this video. What is the difference between saving objects and saving data? I'm curious to know the difference between data and objects.
@becomingbless
@becomingbless 3 жыл бұрын
How do I find the previous video? 🥺
@saikrishnamanchikatla7677
@saikrishnamanchikatla7677 3 жыл бұрын
does memory is created for obj1 in heap when we say Save obj1 = (Save) ois.readObject();
@tarankaranth8782
@tarankaranth8782 3 жыл бұрын
excellent sessio. one question, will object code also get serialized and deserialized or only variable values?
@yogeshthakur535
@yogeshthakur535 3 жыл бұрын
Sir in mine.. i can't see my saved file obj.txt.. Actually I searched it. But file is not saved
@cristianmanolachi3771
@cristianmanolachi3771 9 жыл бұрын
Hello i did a game in gameguru but i can*t save it.How can i do a savegame file becasue there are not a fucntion to save the file
@abddesd1492
@abddesd1492 6 жыл бұрын
can we you any marker interface interchangable ,for example instead of serializable can we use clonable interface is it posssible
@ramadevivakkalanka2998
@ramadevivakkalanka2998 9 жыл бұрын
Nice workdone .. Thank you...
@wanderwithpumpkin185
@wanderwithpumpkin185 2 жыл бұрын
Thank you
@datsonyan3499
@datsonyan3499 6 жыл бұрын
nicely explained.
@sahilkhotkar3574
@sahilkhotkar3574 6 жыл бұрын
Thanks,helped a lot
@addagadavenubabu2558
@addagadavenubabu2558 6 жыл бұрын
Can you please explain about serialization version id it will be better.
@MadForCs16
@MadForCs16 4 жыл бұрын
nice and simple.
@HareKrishna15
@HareKrishna15 3 жыл бұрын
Thanks dude
@chandhrum9061
@chandhrum9061 3 жыл бұрын
Why a dto needs to be serialized??
@mr.RAND5584
@mr.RAND5584 4 жыл бұрын
Is that sir updatable? Like mysql, excel , word ?
@rakshitks7850
@rakshitks7850 6 жыл бұрын
Exception in thread "main" java.lang.ClassCastException: java.base/java.lang.String cannot be cast to rak at Main.main(Main.java:23) help me out with @Telusko Learning
@JR-mk6ow
@JR-mk6ow 3 жыл бұрын
You simply can't convert a string directly to Tak object. Try to implement the toString() in the Rak class
@SyedMuhammadAli-tr4cg
@SyedMuhammadAli-tr4cg Жыл бұрын
where is serialization used other than file handling
@SyedMuhammadAli-tr4cg
@SyedMuhammadAli-tr4cg Жыл бұрын
where
@yogeshpatole9595
@yogeshpatole9595 3 жыл бұрын
Why r u change in fos to oos
@dolevdo
@dolevdo 3 жыл бұрын
amazing
@prelimsiscoming
@prelimsiscoming 3 жыл бұрын
Why (save) is needed?
@dominicxavier5274
@dominicxavier5274 6 жыл бұрын
what is the diff b/w object serialization and object cloning?
@harigoutham7651
@harigoutham7651 6 жыл бұрын
dominic xavier Object cloning is creating a copy of an object and you don't store it and use right way in the code . Object serialisation is copying and also storing object ( may be in a file or database or over a network ) and then you can retrieve at later point of time . It is not possible in case of cloning
@anshuyadav248
@anshuyadav248 7 жыл бұрын
program show unexpected output like "serialdemo@e9e54ce",serialdemo is name of my serializable class
@vladeb1104
@vladeb1104 5 жыл бұрын
chyba sam zaczne robić tutoriale, nie wyrabiam już z tym akcentem
@aidandanielski
@aidandanielski 7 жыл бұрын
Don't you have to close these files?
@m3r5
@m3r5 6 жыл бұрын
Obj1=obj will not copy the values It will copy the reference of obj into obj1 Clear your concepts first
@kumarans8543
@kumarans8543 6 жыл бұрын
It will copy bro. Just code it and check
@m3r5
@m3r5 6 жыл бұрын
@@kumarans8543 class temp { int x,y; temp() { x=0;y=0; } temp(int x,int y) { this.x=x; this.y=y; } } class Ref { public static void main(String[] args) { temp t1=new temp(100,200); temp t2=new temp(); System.out.println("t1 values X ="+t1.x+" \tY = "+t1.y); System.out.println("t2 values X ="+t2.x+" \tY = "+t2.y); t2=t1; //if it will copy objects then changes made to any of the objects will not reflect the other object System.out.println("After t1 values X ="+t1.x+" \tY = "+t1.y); System.out.println("After t2 values X ="+t2.x+" \tY = "+t2.y); t2.x=400; t2.y=500; System.out.println("NOW t1 values X ="+t1.x+" \tY = "+t1.y); System.out.println("NOW t2 values X ="+t2.x+" \tY = "+t2.y); } }
@m3r5
@m3r5 6 жыл бұрын
@@kumarans8543 Just copy and run my code It will not copy values bro, it will copy reference of the object. That's why changes made reflects on both objects
@kumarans8543
@kumarans8543 6 жыл бұрын
@@m3r5 copying reference means that they point to the same object na? thats what i meant by 'copying the value' , It's like same value referred by diff objects
@guitarsrevived9493
@guitarsrevived9493 5 жыл бұрын
yeah bro exactly !!!
@harshverm776
@harshverm776 Жыл бұрын
This time you haven't explain- why we need it ? What are is uses ?
@manavmalhotra8513
@manavmalhotra8513 5 жыл бұрын
Why typevasting in save?
@nithyashreenaidu8357
@nithyashreenaidu8357 4 жыл бұрын
you are explicitly converting it
@yousraahmedd
@yousraahmedd 4 жыл бұрын
Thankss!!
@neomillmarcreas6535
@neomillmarcreas6535 5 жыл бұрын
The explanation is vague
@doplerfish
@doplerfish 8 жыл бұрын
Thank you!
@ragavendravignesh1028
@ragavendravignesh1028 6 жыл бұрын
The default value for an object is null. But you are mentioning it as 0
@_jamesbro_
@_jamesbro_ 5 жыл бұрын
Integer default is null int default is 0
@prim16
@prim16 6 жыл бұрын
Thank youuuuuuuuu
@veerakondratenko1160
@veerakondratenko1160 2 жыл бұрын
Need to work on accent perhaps. Too fast explanation. Hard to understand words.
@zbigniew463
@zbigniew463 6 жыл бұрын
I know that you love sound of your voice, but you do the presentation for me, so get to the point, and skip the hay.
@DrFlash-mh6st
@DrFlash-mh6st 4 ай бұрын
So many mistakes in 4 minutes :(
@ventacode
@ventacode 3 ай бұрын
Cant understand
@anshuyadav248
@anshuyadav248 7 жыл бұрын
program show unexpected output like "serialdemo@e9e54ce",serialdemo is name of my serializable class
@niallscarlett3442
@niallscarlett3442 7 жыл бұрын
Thank you!
@anshuyadav248
@anshuyadav248 7 жыл бұрын
program show unexpected output like "serialdemo@e9e54ce",serialdemo is name of my serializable class
@philipvarghese2863
@philipvarghese2863 7 жыл бұрын
+Anshu Yadav I know its too late, anyway when you simply try to display an object it will be in the format "type@address" to represent the object in string we have to override the toString method of Object class. In this case the toString method will be as follow.. @Override public String toString() { return "Save [i=" + i + "]"; } Note: it should be implemented in the class Save
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 102 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 53 МЛН
Java serialization 🥣
21:13
Bro Code
Рет қаралды 81 М.
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1,1 МЛН
Stream API in Java
26:04
Telusko
Рет қаралды 364 М.
Serialization - A Crash Course
8:14
0612 TV w/ NERDfirst
Рет қаралды 127 М.
Java - Serialization & Deserialization
16:10
TutorialsPoint
Рет қаралды 150 М.
#86 Multiple Threads in Java
11:30
Telusko
Рет қаралды 149 М.
Java Serialization was a Horrible Mistake
4:42
Telusko
Рет қаралды 56 М.
Serialization  and De-Serialization in Java | Pradeep Nailwal
12:49
Lets Make Automation Easy - Pradeep Nailwal
Рет қаралды 37 М.
#95 Comparator vs Comparable in Java
15:43
Telusko
Рет қаралды 211 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 16 МЛН