What is use of static in java?
Answer / Kavita Saini
static is a keyword in Java that can be used to declare variables, methods, and blocks as static. Static members belong to the class rather than individual objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is arraylist an object in java?
When we give defination of interface method in the class why method must be public???
Why is java so important?
There are 100 keys and values in HashMap.how to get the keys and values?
I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.
In the below Java Program, how many objects are eligible for garbage collection?
Can we make main() thread as daemon?
Why is java so popular?
What is Java Classloader?
1 Answers Phantom Technologies,
What is the role of the java.rmi.naming class?
Can we have multiple classes in a single file?
Is int a class in java?