what is the difference between statis block and static
variable

Answer Posted / suresh.m

staticblock,static variables,static method are executed
before creating an object to be created to class.i think
there is no difference between them.

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do extraneous variables affect validity?

528


Are there structures in java?

556


What are internal variables?

559


Detail discussions on JVM, memory management and garbage collector.

555


What is static import?

602






Explain the overview of UDP messaging.

735


What happens if an exception is not handled in a program?

626


why Interface used?

539


how to deploy tomcatserver to weblogic server? write d following steps?

1449


What is the difference between array list and vector in java?

509


Which graphs are functions?

494


Is boolean a wrapper class in java?

602


Is java a digit method?

518


Is empty .java file name a valid source file name?

587


What's the difference between an abstract class and interface in java?

559