what is the difference between statis block and static
variable

Answer Posted / kiran

static variable are access and executed with objects or
methods(static or non-static) its a dependent.
static block executed and access independently when the
program starts

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is integer valueof?

637


How to invoke external process in java.

560


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1982


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

551


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

526






What causes memory leaks in java?

490


How do you get length in java?

553


What do you mean by platform independence of Java?

530


Is there a way to increase the size of an array after its declaration?

599


What does the append?

491


what is meant by Byte code concept in Java?

599


define polymorphism in java

629


State some advantages of java?

710


What is array class in java?

592


What is the difference between a window and a frame in java programming?

587