Can static methods access instance variables in java?


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

Post New Answer

More Core Java Interview Questions

public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }

7 Answers   iGate,


can we create a instance for intwerface?

3 Answers  


If a multi threaded Java program has started numerous number of threads, at any point in time how to know which thread is currently executing/running ?

7 Answers   Accenture, College School Exams Tests, iFlex, NIIT,


What is boolean query?

0 Answers  


What means public static?

0 Answers  






Can we have two methods in a class with the same name?

0 Answers  


What do you mean by append?

0 Answers  


What is the benefit of using enum to declare a constant?

0 Answers   Aspire, Infogain,


if u open login & logout ,how can udisplay the timelogin & logout members ?

0 Answers   Virtusa,


What is dynamic array in java?

0 Answers  


Explain different forms of polymorphism?

0 Answers  


How to check if linked list contains loop in java?

0 Answers  


Categories