What is non static block in java

Answer Posted / sreenu karampudi

Non static blocks: Code within {} is non-static block
for example:

{
// code
}

Is This Answer Correct ?    28 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are constructors used?

546


What is an accessor?

1030


How to sort numbers in java without array?

519


Can you sort a list in java?

517


Does treeset use compareto?

530






What do you mean by synchronized non access modifier?

558


whatis Home interface and Remoteinterface? with example?

1536


Which is best ide for java?

511


What is java and its types?

547


Which is better 64 bit or 32 bit?

497


What is the inheritance?

540


What are the types of arrays in java?

547


Can we have two methods in a class with the same name?

573


What are adapter classes?

595


What does singleton mean in java?

504