can someone please explain the static keyword? when a method is static what does it mean?

Ezzaral commented: Persuing Masters and you can't Google a simply keyword like this? -4

Recommended Answers

Remarkably that you had the time to create a forum account and post a new thread before googling, which takes 0.13 seconds to get an answer from.

http://www.google.com/search?client=safari&rls=en&q=java+static&ie=UTF-8&oe=UTF-8

Jump to Post

All 3 Replies

That's an extraordinary question to ask like that. If you were a complete beginner you would get a flood of replies introducing you to Google. But you seem to be in a programme for a Master's degree, so no excuses. This is on a par with someone doing a Master's in English Literature posting "can someone tell me who Shakespeare is? Has he written a lot of books?".
What research have you done on this yourself? Have you read any tutorial media on Java at all? What exactly is the thing that's confusing you after doing your research?

one of the reason which i know is you can call the method even without creating the object for the corresponding class to which it belongs..

commented: vague description which is not completely correct. the above provided answers would 've helped him getting a decent understanding of the static keyword. -3
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.