• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Some basic but important queries:: please Help

 
Ranch Hand
Posts: 31
Hibernate Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,
I have some basic queries as follows.

1.Why is the syntax of main()is always public static void main(). Please explain importance of each keyword separately.

2.In Java ,there are no pointers. So what is alternative to pointers ?
How can we implement linked list ? Please explain with example.

3. What is different between Error & Exception ? When each of them should be used ?

4. Thread can be created by
a) extending Thread class or
b) by implementing runnable interface

Which is the best way to create thread ? Why ?


Many thanks in advance. I am looking forward for your much needed help.
Please reply ASAP.

Regards,
Somesh.
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This forum is not meant for homework or interview questions. Or can you perhaps give us the reference to the SCJP mock exam where you found the questions.
 
Somesh Rathi
Ranch Hand
Posts: 31
Hibernate Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My apologies for it
However please let me know the right forum for it.
Please let me know the solutions for my questions.
Many thanks in advance..
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Basically we have no forum where the work is done for you. You may attempt the questions yourself and ask whether your interpretation of the questions or your answers are on the right track. We prefer to help those who are willing to show some effort to solve their own problems.

Moving to Java In General (Beginner).
 
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1.Why is the syntax of main()is always public static void main(). Please explain importance of each keyword separately.

2.In Java ,there are no pointers. So what is alternative to pointers ?
How can we implement linked list ? Please explain with example.

3. What is different between Error & Exception ? When each of them should be used ?

4. Thread can be created by
a) extending Thread class or
b) by implementing runnable interface

Which is the best way to create thread ? Why ?



[ Remarkable display of inattention elided ]

bye for now
sat
[ February 08, 2007: Message edited by: Ernest Friedman-Hill ]
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Somesh, please do some studying yourself. That way you will really learn what it all means - you won't really learn it when somebody just tells you the anwer to your homework questions. Study and learn it yourself.

You can find the answer to all of your questions in The Java Tutorial. For example:

This explains what public means: Controlling Access to Members of a Class

This explains what static means: Understanding Instance and Class Members

This explains what void means: Returning a Value from a Method
reply
    Bookmark Topic Watch Topic
  • New Topic