java--Rookie's Road

Source: Internet
Author: User

First knowledge of Java

For a computer small white I, just touch Java such a tall language, my heart is undoubtedly collapsed.

In class, the old driver (teacher) explained things are undoubtedly jerky difficult to understand-the contact is a number of new nouns-----Let me a will only go online QQ playing league on Baidu Man Love why .... Slowly follow the old driver's footsteps to try to knock out the first string of code and compile interpretation of success, the heart is incomparably satisfied with an inexplicable sense of accomplishment-let me to Java have to explore a deeper impulse. There is also a sense of pleasure and fulfillment that you want to completely conquer Java-

With the old driver of these lessons I found that I actually think very cow I actually really very Lou, play so long time computer incredibly even run cmd find computer IP will not!! After listening to the old driver's class, I started to get to know Java, what is Java,java is a computer programming language. Provided by Sun Corporation as an open standard.

In fact, Java is the original program compiled into bytecode files, and through the Java Virtual machine to interpret the way the bytecode to execute. And Java is divided into three versions javase is the standard version of Java is mainly used for desktop development and low-end server applications; Java EE Enterprise Edition development Enterprise-Class network program, JAVAME Development mobile phone, mobile device software ....

Now I'm going to share what I've learned about rookie Java compilation and interpretation

First a bunch of English code that gives me a headache

public static Viod main (String[]args);

System.out.println ("--");

/* When I first saw this, my mom was killing me. What's going to go crazy--the heart is broken---------

English is not what I want to do ah ah Ah!!!! ----------

First line to add class name */

Class HelloWorld

Case-sensitive case-sensitive case--------

It means the brain is already in a crazy

Basic data types

Boolean true ' True ' false ' false '

Integer type Byte,short,int,long,char

Floating-point type float,double--------//mean totally ignorant--but still have to clear the amount

Let me share what I've written about rookie-level base code-

Class Vardemo {
public static void Main (string[] args) {
int A;
a=66;
System.out.println (a);
int last1 = 100,last2 = 200,last3 = 300;
System.out.println ("Last1---" +last1);
System.out.println ("Last2---" +last2);
System.out.println ("Last3---" +last3);
int r1 = 1000;
int r2 = 2000;
int r3 = 3000;
SYSTEM.OUT.PRINTLN ("R1---" +r1);
SYSTEM.OUT.PRINTLN ("R2---" +r2);
SYSTEM.OUT.PRINTLN ("R3---" +R3);
Boolean D1 = true;
byte D2 = 127;
char d3 = 97;
Short d4 = 70;
int d5 = 1000;
Long d6 = 10000;
float D7 = 10000.111111f;
Double D8 = 5.5;
Long D9 = 100;
SYSTEM.OUT.PRINTLN ("AA---" +d1);
SYSTEM.OUT.PRINTLN ("BB---" +d2);
System.out.println ("CC---" +d3);
SYSTEM.OUT.PRINTLN ("dd---" +d4);
SYSTEM.OUT.PRINTLN ("ee---" +d5);
SYSTEM.OUT.PRINTLN ("FF---" +d6);
SYSTEM.OUT.PRINTLN ("GG---" +d7);
SYSTEM.OUT.PRINTLN ("TT---" +d8);
System.out.println ("CC---" +d9+d2+d3+d5+d6);

}
}

Fortunately, the final result was successful----Well, I'm going to practice a few more times. Strengthen your ability to let tomorrow have clearer ideas to understand the next class of content ha--------------------------

java--Rookie's Road

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.