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

Can we synchronize static methods in java?

1091


What is basic syntax?

1033


What is the difference between stringbuffer and stringbuilder class?

1090


What is java Applet?

1092


Write a java program to check if a number is prime or not?

1032


What are unchecked exceptions in java?

1027


What is a newline character in java?

1031


What is functional interface in java?

1038


How many ways can we create the string object?

1013


What does sprintf mean?

940


How to read and write image from a file ?

1040


what do you understand by synchronization? : Java thread

980


Mention the default values of all the elements of an array defined as an instance variable.

975


What is a stack class in java ?

1102


How can we pass argument to a function by reference instead of pass by value?

1106