what is the difference between static block and static
method
Answer Posted / ravikiran
static block is used to initialize the variables during the
JVM startup.
static methods are getting called with out creation of any
instance.
| Is This Answer Correct ? | 34 Yes | 6 No |
Post New Answer View All Answers
Are floats faster than doubles?
What is the difference between serializable and externalizable interfaces?
What is the purpose of a transient variable?
What is final keyword in java? Give an example.
What are nested classes in java?
What is an object’s lock and which object’s have locks?
What is the relationship between clipping and repainting under awt?
how to split string in java?
What means public static?
Can a class have multiple subclasses?
What is meant by attribute?
Can a static class have a constructor?
Can you explain inner class.
What does a za z0 9 mean?
What is the properties class in java programming?