1. Who is the founder of the Java language?
Games Gosling
2. What are the advantages and disadvantages of the Java language?
Java language Features: (1) Simplicity, Java removed a lot of complex mechanisms in C + +, (2) network characteristics, the Java language because of the good support of the Internet has been rapidly promoted; (3) object-oriented, thorough object-oriented features, (4) platform-agnostic/portability, Java language is one of the best languages to solve the compatibility of heterogeneous platforms, (5) robustness, (6) Security, Java programs running on the network are compliant with network security protocols, (7) multithreading, multithreading is a way to improve the efficiency of program operation; (8) explanatory, The Java language is an explanatory language.
3, how to build a Java development environment?
Two steps: (1) Install JDK, (2) Set PATH environment variable and CLASSPATH environment variable
4, please briefly describe the role of the environment variable path and CLASSPATH
Path is to allow the operating system to find Java-related commands
Classpath is intended to allow Java commands to find the class in the Java library that is needed when executing Java programs
5. What kinds of Java programs can be divided into? What's the difference?
Java programs can be divided into Java applications and Java applets
6. Check the Javaza online Help documentation to list the differences between SYSTEM.OUT.PRINTLN and System.out.print.
PRINTLN is wrapped, print is not wrapped
7. Try to write a Java program and output the following information in the console window
public class Printmsg
{
public static void Main (string[] args)
{
System.out.println ("*******************************");
SYSTEM.OUT.PRINTLN ("* * Practice makes Perfect");
System.out.println ("*******************************");
}
}
8. Try to write a Java program to display the contents of Exercise 7 output on a Web page
Import Java.awt.Graphics;
Import Javax.swing.Applet;
public class Printmsgapplet extends JApplet
{
public void paintstring (Graphics g)
{
G.clearrect (0, 0, getwidth (), getheight ());
g.DrawString ("*******************************", 10, 20);
g.DrawString ("* * Practice makes Perfect", 20, 20);
g.DrawString ("*******************************", 30, 20);
}
}
<title>practice makes perfect
</title>
<body>
<applet code= "Printmsgapplet.class" width=200 height=50>
</applet>
</body>
9, please describe the specific steps to write a Java program
Write, compile, execute.
10, please explain exercise 7 and Exercise 8 program in the Java Virtual machine execution process
Java ClassName loading, legality and security detection, interpreting execution
Java Programming Tutorial-1th Chapter Introduction