Write a program to check for a prime number in java?
No Answer is Posted For this Question
Be the First to Post Answer
When we give defination of interface method in the class why method must be public???
1.what is the exact difference between applet and frame? 2.Do we use main method in frames?
What do you mean by collectors in java 8?
Difference between static methods, static variables, and static classes in Java.
we have two threads..both the threads are reading the data.. is there any need of synchronization there?...justify it?
How do you allocate memory to object?
Difference between arraylist and hashset in java?
Write a java program to count the number of words present in a string?
Garbage collection in java?
what is struts-config-xml?and its use?
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one?
There can be a abstract class without abstract methods, but what is the need to declare a class abstract if it doesn't contain abstract methods?