How do you use, call, and access a non-static method in Java?

Answers were Sorted based on User's Feedback



How do you use, call, and access a non-static method in Java?..

Answer / nashiinformaticssolutions

• The static keyword does not have to appear before the method name.
Like any generic method, call a non-static method.
• Any static variable or method can be accessed by non-static methods without requiring the creation of a class instance.

Is This Answer Correct ?    0 Yes 0 No

How do you use, call, and access a non-static method in Java?..

Answer / glibwaresoftsolutions

The static keyword does not have to appear before the method name.
Like any generic method, call a non-static method.
• Any static variable or method can be accessed by non-static methods without requiring the creation of a class instance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why parameters should be passed by reference?

0 Answers  


What is the this keyword?

0 Answers  


What is a flag variable?

0 Answers  


Can an interface extend a class?

0 Answers  


What is the synonym of string?

0 Answers  


What is the core java?

0 Answers  


JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu

9 Answers   Huawei,


how to write a program for chat function using core java

1 Answers   Satyam,


what is the Use of throws exception?

2 Answers  


Explain different types of wrapper classes in java?

0 Answers  


What is the multilevel inheritance. and also give the Example of it ?

5 Answers  


Is Java a dying language?

0 Answers  


Categories