What is the return type of readLine() when end of a file is
reached?
Answers were Sorted based on User's Feedback
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 |
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 |
How do you remove duplicates in java?
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
Why is the type for real numbers called double?
How do you implement polymorphism in our day to day life?
Difference between the paint() and repaint() methods?
What is the purpose of nested class in java?
Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time
What is parsing in grammar?
What is the nested interface?
Why packages are used?
What are the different data types in java?
What is string [] args?