• Post Reply Bookmark Topic Watch Topic
  • New Topic

Serialization in java  RSS feed

 
Jane Nelson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one of my interview they asked me question of serialization interface in java, they asked me what is the output of System.out.println(4+5,"A+B",3+4);

Can you tell me what is the answer of this question?
 
Tim Cooke
Marshal
Posts: 4051
239
Clojure IntelliJ IDE Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it yourself? What was the output?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My reply would have been: What does the concept of serialization have to do with that question? I don't see a connection.

Also, do you mean the "Serializable" interface?
 
Jane Nelson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually they asked me questions about serialization. what is serialization and after that they asked me about this question what is the output of System.out.println(4+5,"A+B",3+4); in Serialization? So at that time i also didn't understand what is the output of that? Untill now i don't know what is the answer of this question? So anybody can give me the answer?
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try that line?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There doesn't seem to be a connection between the two questions.
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:There doesn't seem to be a connection between the two questions.
I meant System.out.println(4+5,"A+B",3+4); as in JN's latest post. Sorry if I wasn't clear.
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I agree with Campbell -- or perhaps. I am just as surprised. It has been over 10 days since the original question was asked. Would it not have been much easier to simply take a few minutes, and coded the one-line statement?

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!