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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

Given: 1. package test; 2. 3. class Target { 4. public String name = “hello”; 5. } What can directly access and change the value of the variable name? 1 any class 2 only the Target class 3 any class in the test package 4 any class that extends Target

7 Answers   Infosys, WW,


Why transient variables wont participate in serialization?

2 Answers  


What is meant by JVM? Is JVM platform independent or not?

0 Answers   Wipro,


How are this() and super() used with constructors?

9 Answers  


How do you classify Dialog Box?

0 Answers   CGI,


what is Remote Reference Layer ?

1 Answers  


Can we override tostring method in java?

0 Answers  


What is the difference between processes and threads?

0 Answers  


What is a finally block?

0 Answers  


What is class and its types?

0 Answers  


Can we overload destructor in java?

0 Answers  


write a code, we have two thread, one is printing even no and other print the odd no.

1 Answers   Global Logic,


Categories