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

In how many ways we can do exception handling in java?

0 Answers  


write the hierarchy of component class?

1 Answers  


what is the difference between abstract class and Interface?where we can use it in realtime projects?

23 Answers   Agile Software, Cognizant, IBM, Innodata, Logica CMG, Mitosis, Nagarro, Value Chain,


What is autoboxing in java?

0 Answers  


what is difference between equals and ==?

0 Answers  






What is method overloading and method overriding?

0 Answers  


write a class to input 2 points by the user & check the line maked by the points is horizontal,vertical or rectangle?

1 Answers  


How do you create a sop?

0 Answers  


How is string stored in java?

0 Answers  


java is pure object-oriented programming language?why it is platform independent.

1 Answers  


Define array. Tell me about 2-D array.

0 Answers   Agilent,


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

0 Answers   Cisco,


Categories