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

What is Collection interface?

1 Answers   Zensar,


Explain about the security aspect of java?

0 Answers  


Create a form of user Login in JSP, that accepts the user name and password from user and authenticate it with user names and passwords stored in database. (Plz provide me answer immediately)

1 Answers   ABC,


can rmi and corba based applications interact ?

0 Answers  


Explain the difference between association, aggregation and inheritance relationships.

0 Answers  






Write a function for palindrome and factorial and explain?

0 Answers   Honeywell, Huawei, Zomato,


What are the three parts of a lambda expression?

0 Answers  


Is void a data type in java?

0 Answers  


What is object of class in java?

0 Answers  


What are the basic interfaces of java collections framework?

0 Answers  


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

0 Answers  


Can we sort set in java?

0 Answers  


Categories