Java ArrayBlockingQueue toString() MethodThe toString() method of Java ArrayBlockingQueue returns a string representation of this collection. Syntax:Parameters:NA OverridesReturn Value:The toString() method returns a string representation of this collection. Example 1Output: Elements in queue : [Reema, Rahul, Rita, Ramesh] Example 2Output: [Name = Hinna, Name = Vinni, Name = Rima] Next TopicJava-arrayblockingqueue-toarray-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India