What is the return type of readLine() when end of a file is
reached?

Answers were Sorted based on User's Feedback



What is the return type of readLine() when end of a file is reached?..

Answer / krishnakanth

Return Type of readLine() is "String".

Returns:
A String containing the contents of the line, not including
any line-termination characters, or null if the end of the
stream has been reached

Is This Answer Correct ?    11 Yes 1 No

What is the return type of readLine() when end of a file is reached?..

Answer / dilshad

ya ,i think so....
the return type of the method readLine is String why because
the input give from the console in java language is always
String.............

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Core Java Interview Questions

How can we handle runtime exceptions? write one sample program? Can we write runtime exceptions beside the throws key word? if yes write sample program?

1 Answers   Huawei,


What is the difference between yield() and sleep()?

0 Answers  


What about features of local inner class?

0 Answers  


can any body body expalin best definitions & best real time exaples for opps concepts.

0 Answers   Accel,


Is null a string in java?

0 Answers  






What is use of set in java?

0 Answers  


What is an infinite loop in java? Explain with an example.

0 Answers  


What do you mean by ordered and sorted in collections in java?

0 Answers  


What is mean by collections in java?

0 Answers  


What about anonymous inner classes in java?

0 Answers  


Where is the find and replace?

0 Answers  


What are E and PI?

1 Answers  


Categories