what is difference between global methods and local methods?



what is difference between global methods and local methods?..

Answer / 31st august 2009

Global methods are declared globally at class level(Like
static methods), we can directly access those methods with
out creating an object.

Loca methods are declared inside a class, u need to create
an object in order to access those methos


Thanks,
Aryan
sridhar.rvce@gmail.com

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

whether java is fully object oriented language or partially object oriented language

4 Answers   Infosys, ME, SMK,


Can singleton class be inherited in java?

0 Answers  


Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1

7 Answers   Huawei, IBM,


What is the unit of plancks constant?

0 Answers  


How to disable caching on back button of the browser?

0 Answers  






Write a program to create a binary Tree ?

2 Answers  


Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.

9 Answers  


Can we extend immutable class?

0 Answers  


What is the purpose of the main method?

0 Answers  


What is covariant return type?

0 Answers  


What is "Java Native Interface" and how to use it?

1 Answers   IBM,


what is the difference between Java Command Line and C command Line?

2 Answers  


Categories