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

What is double checked locking in singleton?

614


How is treeset implemented in java?

495


What is the purpose of using bufferedinputstream and bufferedoutputstream classes?

556


What is the transient keyword?

635


Why are there no global variables in java?

587






Is there a jre for java 11?

558


Is it necessary for the port addresses to be unique? Explain with reason.

577


Is math an abstract class in java?

539


Which list does not allow duplicates in java?

516


Which types of exceptions are caught at compile time?

567


What is contract between hashcode and equal method?

574


Are registers volatile?

536


What is this keyword in java?

568


In how many ways we can do exception handling in java?

577


What does pointer mean?

546