|
||||
|
Hello shawon,
Welcome to the Java Programming Forums. Java is very complex. Its going to take dedication and lots of reading/practise to learn. The best place to start is at the Sun Java Tutorials. Its exactly where I started.. The Java™ Tutorials Read all about the basics. Try to write your first "hello world" program and post back here when you get stuck. Enjoy. |
|
|||
|
Thanks .I am succesful to run first program.But for academic study it is important for me to know about static & it's use,restriction.Actually u have to give me idea with a code.wish ur reply soon.
|
|
||||
|
Quote:
Java Code:
static final int VERSION = 2; Quote:
Java Code:
public class myObject
{
static int objectCount = 0;
public myObject()
{
objectCount++;
}
public String toString()
{
return new String ("There are " + objectCount + " objects");
}
}
Quote:
It all comes together quite nicely once you start writing your own code.. There are some free SCJP ebooks on this site that will be really worth reading and will help you alot in your study. Free SCJP e-books and mock exam questions |
![]() |
| Thread Tools | |
| Display Modes | |
|
|