iam writing the contents to a excel through I/O
i am putting first statement as WRITE and then READ(from
excel) immediately..later user complains that he is not
getting the date by using READ ..wat could be the situation

Answers were Sorted based on User's Feedback



iam writing the contents to a excel through I/O i am putting first statement as WRITE and then REA..

Answer / dharmender

in this case, after write statement we can put flush statement to force the buffered bytes to be written. then the read statement will show the date.

Is This Answer Correct ?    1 Yes 0 No

iam writing the contents to a excel through I/O i am putting first statement as WRITE and then REA..

Answer / shivendra

I think firstly when we write data into to excel it is not
to be saved in excel. So we need the save operation or we
can close the file after write operation and then open it
and read it.

Is it correct ans?

Is This Answer Correct ?    0 Yes 0 No

iam writing the contents to a excel through I/O i am putting first statement as WRITE and then REA..

Answer / siva thimmannagari

i told the interviewer like- the thread which is going to
write to excel in SLEEP model.he told like there is no
sleep statement in between READ and WRITE..

i dont know the answer

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Advanced Java Interview Questions

What is metaspace?

0 Answers  


Can I import same package/class twice? Will the jvm load the package twice at runtime?

0 Answers  


Explain how will the struts know which action class to call when you submit a form?

0 Answers  


What is checkpoint? How to create checkpoints in our java projects?

1 Answers   ABC,


Explain the difference between object state and behavior?

0 Answers  






What is colon_pkg_prefixes and what is its use?

0 Answers  


what is a non-repeatable read?

0 Answers  


What is ioc concept & explain it?

0 Answers  


What are the various thread priorities?

1 Answers  


difference between  ejb,struts,hibernate,spring and jsp

0 Answers  


What is ioc concept?

0 Answers  


What are the JSP implicit objects ?

1 Answers   eMids,


Categories