Static Variable can referred in non-static method?

Answer Posted / rableen khurana

Yes we can access static variable in non-static
methods....and we can access instance variable in static
method also with the help of object......

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are unchecked exceptions in java?

837


What is numeric function?

745


Is cout buffered?

901


Are arrays primitive data types?

865


Is map ordered in java?

729


What is incompatible types in java?

806


What are java threads?

864


Does java map allow duplicates?

675


How will you reverse a link list without using recursion?

806


What java ide should I use?

767


Which class is the superclass for all the classes?

783


Write a java program to count the number of words present in a string?

747


What is the default size of load factor in hashing based collection?

818


Explain about serializable interface in java?

781


Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification

1639