0 تصويتات
منذ بواسطة
Queue<Integer> qu = new LinkedList<>();   System.out.println("Adding elements to the Queue");     qu.add(1);   qu.add(2);   qu.add(3);  System.out.println("The Queue size is : "+qu.size()); What is output of code?
a.Adding elements to the Queue     The Queue size is: 3
b.Adding elements to the Queue     The Queue size is: 2
c.Adding elements to the Queue     The Queue size is: [1,2,3]
d.Adding elements to the Queue     The Queue size is: 0

1 إجابة واحدة

0 تصويتات
بواسطة
a. Adding elements to the Queue  The Queue size is : 3
مرحبًا بك إلى يزيد، حيث يمكنك طرح الأسئلة وانتظار الإجابة عليها من المستخدمين الآخرين.

اسئلة متعلقة

...