Why we declare in the way List ab = new ArrayList(); what is the use of it?
Answer / sravani gupta
When you declare List l = new ArrayList() l is limited to the methods provided by the interface List, while when you declare it ArrayList al = new ArrayList() it can use all methods and fields in an arraylist.
When you declare it List l then you afford yourself more flexibility as you can change out the ArrayList for something more appropriate at a later date if you want to without breaking any code
| Is This Answer Correct ? | 3 Yes | 3 No |
In the given quadratic equation, mx2+nx+o=0 .If the ratio of the sum of the roots and the product of roots is 2:7, what can be possible values of b and c?
There is a carem board where 4 No of player can play at a time but 5 No of player have to play with every for gain personal score(not double).In this case how many total minimum No of game /meach will be play..
In a class 80% have passed english,70% passed Hindi 10% didnot passed either. If 144 students passed both. What is the total strength of the class.
10 Answers Geometric Software, Google, Wipro,
new town is straight to the north of new york. A high way m runs from newtown making an angle of 61 degree south east. From new york there is also an high way n which runs northeast 61 degrees. If high ways m and n are straight then find out the acute angle made at their intersection point.
What annual payment will discharge a debt of rs. 6,450 Due in 4 years at 5% per annum simple interest?
pls.send me the prvus. yr central bnk of india's clerkship exam solved question papers......
If g (0)=g (1)=1 And: g (n)= g (n-1) + g (n –2) find g (6);
If 12 men and 16 boys can do a piece of work in 5 days and,13 men and 24 boys can do it in 4 days, how long will 7 men and 10 boys take to do it,
A man drives at a speed of 40 miles/hr. His wife left 30 mins. late with 50 miles/hr speed. when will they meet ?
4 men can cross a bridge in 3,7,13, 17 minutes. Only two can cross the bridge at a time. The time taken by the two to cross the bridge is equal to the time taken by the slowest person of the two. Find the minimum time to all of them cross the bridge?
What is the Lcm of root2 and 2?
The value of x is between 0 & 1 which is the larger? A) x B) x^2 C) -x D) 1/x