What is static variable and static method?

Answer Posted / naraen

static variable is a class variable. This life time scope
in whole prgm...

static method is use to access without creating object in
the java prgm...

Is This Answer Correct ?    53 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between an Interface and an Abstract class?

626


What are different types of arrays?

532


What are the main concepts of oops in java?

593


os is developed in c no java is more secured then c na why dont the os developed is developed using java

3521


How do you override a variable in java?

531






How to use arraylist in java netbeans?

512


What is the inheritance?

549


How can you make a class serializable in java?

567


Which is better list or arraylist in java?

495


Explain the importance of thread scheduler in java?

600


What is foreach loop in java?

534


What is difference between synchronize and concurrent collection in java?

520


What is java instanceof operator?

564


What is the concept of multithreading?

520


Can a class be private?

516