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
How to obtain a performance profile of java program
How do you use compareto method?
Why do we use regex?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is the exception hierarchy in java?
What is the difference between public, private, protected, and friend access?
What is output buffer?
What is the difference between char and char *?
What is the benefit of lambda expressions?
What is anagram of a string?
What environment variables are required to be set on a machine in order to run Java programs?
What is complexity in java?
What is string builder in java?
What is method reference in java?
What is palindrome in java?