American Airlines Interview Question
Software Engineer / Developersstatic methods we can call from static/instance any methods.But we can call instance methods from instance methods or main method.Because static methods loaded by class loading by that time instance is not available.Program execution starts from main() Thread only so that here instance methods available here by creation instance
static methods we can call from static/instance methods.But instance methods we can call from instance methods or main method.Because static methods was loaded by class loading,By that time instance is not available.Program execution will starts from main() Thread.So,that by that time instance methods are available by creating instance .
new an object and call its non static funtions, maybe
- Anonymous June 29, 2010