Can you declare a static variable in a method?

Answer Posted / aditya mohata

ya.

Is This Answer Correct ?    3 Yes 28 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why hashcode is used in java?

475


Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

569


What is hashtable and explain features of hashtable?

538


What are the types of strings?

540


What is protected in java?

508






How do you reverse sort a list in java?

481


Are global variables initialized to zero?

488


How can constructor chaining be done using this keyword?

568


What is singleton service?

482


Explain about OOPS concepts and fundamentals.

572


What is hash code collision?

567


What are packages in java?

535


What is nan inf?

482


Can extern variables be initialized?

487


Can a string be null?

516