What is flush () in java?
Answer / Neha Singh
In Java, the `flush()` method is used to force the immediate flushing of any buffered output. It ensures that all output that has been written to a stream so far is actually sent to the output device.
| Is This Answer Correct ? | 0 Yes | 0 No |
1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What is meant by class loader? How many types are there? When will we use them?
Can we sort hashmap in java?
Is there any limitation of using inheritance?
What is a singleton puppy?
What is the difference between final, finally and finalize() in java?
Is it possible for yielded thread to get chance for its execution again ?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is the use of generics? When was it added to the Java development Kit?
Which is faster call by value or call by reference?
Is map ordered in java?