• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java io package Interview question.

 
Ranch Hand
Posts: 214
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all Rancher,

Today I faced a question in my Java/J2EE interview question.
The question is:-

Suppose we have two text file named a.txt and b.txt




Then what logic should use here if we imagine that the a.txt file has removed some data and b.txt has also removed some data at the time of File Written.

SO please tell me that in actual the interviewer what was asking from me?
Really I didn't get this concept.

Thanks in advanced!
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Then what logic should use here


Logic to do what? For example did the interviewer ask you how to determine what had been removed from each file or how to merge the files or something else altogether.
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rd Dari wrote:Suppose we have two text file named a.txt and b.txt


Rd Dari,

Please DontWriteLongLines. It makes your thread difficult to read, and in this case doesn't help at all:
I still have no idea what your "diagram" is supposed to represent.

Why don't you simply give us the interview question exactly as it was given to you.

And don't take offense at any answers: many of us here are NOT great fans of interview questioners.

Winston
 
Rd Dari
Ranch Hand
Posts: 214
Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Winston and Tony,

Thanks for reply.

Still I am not able to understand that what was the question and what is answer of that. He wrote it on the projector it like a table and asked me what core java logic should use here to find a File is written two files something like this.

 
Winston Gutkowski
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rd Dari wrote:Still I am not able to understand that what was the question and what is answer of that.


Well, I hate to say, but neither do I; and unless you can explain it a bit better, you may be out of luck.

There are two possibilities that I can think of:
  • He wanted to know if you knew about the diff (←click) algorithm.
    If that's the case, there's a big difference between knowing it exists, and what it does, and writing one yourself
    (I certainly wouldn't want to; and I've been doing Java for a long time).
  • This was some sort of question about synchronization.

  • But without more information I'm afraid I can't help you.

    Winston
     
    reply
      Bookmark Topic Watch Topic
    • New Topic