When we can access the static data member without creating
the object what is the need of the object in java.

Answer Posted / avadhut rane

Object is needed to access a non static data member

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a hashmap used for?

652


Write a java program to check if a number is prime or not?

539


Explain the importance of import keyword in java?

528


What are implicit objects in java?

553


What will happen if static modifier is removed from the signature of the main method?

530






What is the difference between abstract class and interface1? What is an interface?

566


Is void a data type in java?

528


What Is Composition?

587


What is a nested structure?

541


What is an example of declaration?

529


How do you convert int to char in java?

577


What is the difference between delete and delete[]

586


What is the purpose of encapsulation?

545


What does sprintf return?

591


If system.exit (0); is written at the end of the try block, will the finally block still execute?

624