what is the difference between static block and static
method
Answer Posted / anu
static block is execute first after the remaining blocks will executes.
static metods can executes using classname.staicmethodname
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are abstract methods in java?
How do you declare an array that will hold more than 64KB of data?
What is collection class in java? List down its methods and interfaces.
Write a java program to check if a number is prime or not?
What is the difference between yielding and sleeping?
What is a cup of java?
What is stored procedure. How do you create stored procedure ?
How java enabled high performance?
what is the constructor and how many types of constructors are used in java?
what is the swingutilities.invokelater(runnable) method for? : Java thread
Is java code slower than native code?
Can a class be private in java?
How is java created?
What is the purpose of void class?
What is the difference between a factory and abstract factory pattern?