Can a static member function access member variable of an object?



Can a static member function access member variable of an object?..

Answer / Rakesh Kumar Singh

No, a static member function can only access static members and cannot access non-static members of an object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is Transient and volatile

10 Answers   iFlex,


What do you understand by weak reference?

1 Answers  


What are the common problems you have faced while implementing Java?

1 Answers   IBM,


What is the difference between serial and throughput garbage collector?

1 Answers  


what are the boundaries of jdk and jre?

0 Answers   CoreObjects,


how to accept integer array in java

2 Answers   Tech Guru,


what is difference between requestprocessor and request dispatcher?

2 Answers   Tech Mahindra,


1).what is the difference between below examples String s="vijay"; String s=new String("vijay");

12 Answers   Mascon, Satyam, TCS,


How do you check if two strings are equal in java?

1 Answers  


What are structs in java?

1 Answers  


Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding .........

2 Answers   Honeywell,


What is an example of a keyword?

1 Answers  


Categories