You are on page 1of 26

1990 James Gosling

C++
.


Java interpreter
Web applets

1995
.


.1 .
.2(.


).
.3 .
.4.
.5 .

applets




.

stand-alone
applications



.


Notepad


.
Integrated
) Development Environment (IDE




Eclipse
NetBeans
Sun Java Studio


//new porogram
/**
* @(#)first.java
*
*
* @author
* @version 1.00 2010/12/13
*/

public class first {

public static void main (String[] args) {


System.out.println("Welcome to Java World");
}
}


comments .





.Java compiler


:
.1 //
:
//new program
.2 * /
*/
:
/* First, establish a connection to the server.
If the connection attempt fails,
quit right away. */




** / * /
doc comments
javadoc

:
/** Upload a file to a web server. @param file The file
to upload. @return <tt>true</tt> on success,
<tt>false</tt> on failure. @author David Flanagan */



" "
string

Reserved Words


class
variables

.Identifiers

identifier

class methods .variables



$ _

Unicode
.

:
i , x1 , theCurrentTime , the_current_time ,
Qa$em
:
5world , My program , Java.prog ,
welcome:java

.class
class
object-oriented languages

.

variables
methods

Height

Class

Width

variables

Method

puplic class
name .identifier
}
{ .class

main

method main
:
)public static void main(String[] args
:
public .1 main
class
static .2 main
class
void .3 main


interpreter
main
method method

main
:
In class NoMain: void main(String argv[]) is not
defined

Main method
) public static void main(String[] args
Main method argument
( ) array
.string
system

string
string .
{ } .

java creator
java envirnoment
java creator
crack

Keyword

Identifier

public class first



first.java

You might also like