• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

pl help - urgent

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why is this urgent?, seems no more urgent than ever other question around here?
 
Sheriff
Posts: 16125
268
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic