SHARING KNOWLEDGE EACH OTHERS!

Wednesday, January 21, 2009

JAVA BOOK


Java Creation and Developement
Java was conceived by James Gosling, Patrick Naughton, Chris Worth, Ed Frank and Mike Sheridan at Sun Microsystems, in 1991. It took 18 months to develop the first working version. This language was originally called “Oak” but it was renamed as Java in 1995. Between the initial implementation of Oak in the fall of 1992 and the public announcement in the spring of 1995, many more people contributed to the design and evolution of the language. It is a strongly typed language. First, every variable has a type, every expression has a type, and every type is strictly defined. Second, all assignments, whether explicit or via parameter in method calls, are checked for type compatibility.

  1. CHAPTER ONE
  2. CHAPTER TWO
  3. CHAPTER THREE
  4. CHAPTER FOUR
  5. CHAPTER FIVE
  6. CHAPTER SIX
  7. CHAPTER SEVEN
  8. CHAPTER EIGHT
  9. CHAPTER NINE
  10. CHAPTER TEN



Saturday, December 27, 2008

Java - Separators


There are a few characters that are used as separators in java. The mostly commonly used separator in java is the semicolon. As you have seen, it is used to terminate statements.

() called Parentheses used to contain list of parameters in method definition and invocation. Also used for defining precedence expressions in control statements, and cast type.

Braces {} used to contain the values of automatically initialized arrays. Also it is used to define a block of code, for classes, methods, and local scopes.

Brackets [], it is used to declare array types. Also it is used when dereferencing array values.

Comma , it separates consecutive identifiers in a variable declaration. Also it is used to chain statements together inside a for statement.

Period “ .” it is used to separate package names from sub packages and classes. And it is also used to separate a variable or method from a reference variable.


GO TO CHAPTER 2



Thursday, December 25, 2008

CHAPTER ONE-6


public class Tab {
public static void main(String[]args) {
System.out.println("1\t2\t3\t4\t5\t\n6\t7\t8\t9\t0");
}
}

THIS IS A SIMPLE EXAMPLE OF HOW TO USE TAB (\t) COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS Tab.JAVA, AND THE SAVE AS TYPE IS ALL FILE.
CHAPTER ONE MAIN


CHAPTER ONE-5


public class First_5 {
public static void main(String[]args) {
System.out.println("1\t2\t3\t4\t5");
System.out.println("6\t7\t8\t9\t0");
}
}
CHAPTER ONE MAIN


CHAPTER ONE-4


public class First_4 {
public static void main(String[]args) {
System.out.println("Tamilan live in every country\n"+
"But they don't have own country\n"+
"They are a refugee now");
}
}
CHAPTER ONE MAIN


CHAPTER ONE-3


public class First_3 {
public static void main(String[]args) {
System.out.println("Tamilan live in every country"+
"But they don't have own country"+
"They are a refugee now");
}
}
CHAPTER ONE MAIN


CHAPTER ONE-2


public class First_2 {
public static void main(String[]args) {
System.out.println("Tamilan live in every country");
System.out.println("But he dosen't own country");
System.out.println("He is a refugee now");
}
}

CHAPTER ONE MAIN


CHAPTER ONE-1


public class Print{
//-----------------------------------------------------------------
// function of print
//-----------------------------------------------------------------
public static void main (String[] args) {
System.out.print ("Srilanka is a blood river country");
System.out.print ("Majority is Singalish");
System.out.print ("They are killing tamil people");

//----------------------------------------------------------------
// function of println watch output to understand the different
//-----------------------------------------------------------------
//to give line space
System.out.println (" ");
System.out.println (" ");
System.out.println ("Srilanka is a blood river country");
System.out.println ("Majority is Singalish");
System.out.println ("They are killing tamil people");
}
}
THIS IS A PROGRAM SHOWS THE DIFFERENTS OF THE PRINT AND PRINTLN COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS Print.JAVA, AND THE SAVE AS TYPE IS ALL FILE.
CHAPTER ONE MAIN


CHAPTER ONE


public class Simplestatment
{
//-----------------------------------------------------------------
// HOW TO GIVE SENTANCE AS OUT PUT,
//-----------------------------------------------------------------
public static void main (String[] args) {
System.out.println ("This is my first step in java programming");
System.out.println ("i am a tamil srilankan refugee");
System.out.println ("i don't have any country to live");
}
}


THIS IS A SIMPLE EXAMPLE HOW TO GET A OUT PUT OF SIMPLE STATMENT COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS Simplestatment .JAVA, AND THE SAVE AS TYPE IS ALL FILE.

CHAPTER ONE MAIN


Enter your email address:

 

SOFTWARES AND PLATFORMS Copyright © 2010 LKart Theme is Designed by Lasantha