Forums Register Login

pl help - urgent

+Pie Number of slices to send: Send
4.
Question ID :970968090080 - this is a jqplus quest
How can you declare a method someMethod() such that an instance of the class is not needed to access it
and all the members of the same package have access to it.
5.
What is the diff in declaring a method and defining a method??
*******
Thanks
Padmini
+Pie Number of slices to send: Send
Why is this urgent?, seems no more urgent than ever other question around here?
+Pie Number of slices to send: Send
padmini,
You have to calm down. Relax a little. Over the last few days, you have been posting messages and marking them urgent. But you could have easily answered most of them yourself by writing a small program and trying it out. Not only do you lose out on a valuable learning opportunity by posting "urgent" questions instead, you also run the risk of not getting an answer from people who could but won't because they were ticked off by your lack of initiative.
Sorry if this sounds harsh but that's just the way things are around here.
As for your first urgent question, understanding what the static keyword does is one of the basic requirements for Java certification.
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
regarding your second question declaring and defining a method. I saw this in C programming language where we declared method up in the program and then defined the method body later.
In java in abstract methods you only declare the method and when you provide an implementation for that class you define the method body. Infact I am seeing this term(method declare/define) for the first time in Java
Anyway, best of luck for your exam tommorrow. take it easy and with a deep breath.
She'll be back. I'm just gonna wait here. With this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 775 times.
Similar Threads
A question about thread safety and servlets
Need to see how HTTP Works
variable this is undefined ?
overriding
confuse about protected and static
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:28:01.