Which collection object is faster to retrieving the data and
inserting the data into it.
Answers were Sorted based on User's Feedback
Answer / nav dev
ArrayList is faster to retrieving
Set is faster to inserting
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / lavanya
LinkedLisr is facter in inserting and retrieving from any
position on the list.
| Is This Answer Correct ? | 11 Yes | 3 No |
class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.
Can main() method in java can return any data?
Is space a char?
What is the main purpose of java?
Can you tell me range of byte?
What is an abstract method in java programming?
What is the use of StringTokenizer class?
Explain super keyword in java.
solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..
Program to find greatest prime number in n numbers?
what is java bean?where can we use it?
What are three types of loops in java?