Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use set in java?

942


Which class is used by server applications to obtain a port and listen for client requests?

906


Define linked list and its features with signature?

931


How to sort array in descending order in java?

873


Why do we override tostring method in java?

895


What is merge sort in java?

912


What do you understand by private, protected and public?

995


What do you mean by ternary operator in java?

960


What is the difference between the paint() and repaint() methods in java programming?

1131


What is java beans?

937


What about interrupt() method of thread class ?

1012


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

1024


Does .length start 0 java?

955


How do you remove an object from an arraylist in java?

904


What is nextint java?

975