In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to use java, the introduction in the article is very detailed, has a certain reference value, interested friends must read!
I haven't written about my java for several days. I still feel like writing java after thinking about it for a long time today. No matter what technology developers want to engage in, they should keep their original idea and stick to it so that they can succeed.
Introduction to Java
Java is the general name of Java object-oriented programming language and Java platform introduced by Sun Microsystems in May 1995. It was jointly developed by James Gosling and colleagues and officially launched in 1995.
Java is divided into three systems:
JavaSE (J2SE) (Java2 Platform Standard Edition,java platform Standard Edition)
JavaEE (J2EE) (Java 2 Platform,Enterprise Edition,java platform Enterprise Edition)
JavaME (J2ME) (Java 2 Platform Micro Edition,java platform Micro Edition).
In June 2005, the JavaOne conference was held, and SUN made Java SE 6 public. At this point, various versions of Java have been renamed to cancel the number "2": J2EE has been renamed to Java EE, J2SE has been renamed Java SE,J2ME to Java ME.
Java features:
It is easy to understand, easy to start, object-oriented (you can create your own objects if you can't find them), distributed, secure, multithreaded, and so on.
Java tutorial:
Whether we learn C++ or java, of course, we all start from helloword, and of course, we also start from this.
First of all, install the environment. Jdk is a must.
Https://www.runoob.com/java/java-environment-setup.html
The rookie tutorial is very complete, so I won't introduce it in pictures and text, but go directly to the website.
Then after installing the environment, you can write the program.
There are also many development tools for java, but today I don't need development tools and use command-line mode instead.
First create a folder.
And then the name is HelloWorld.txt.
Remember that the file name and class name must be the same. The first letter should also be capitalized, and the naming rules should be named for the hump.
Then save the modified suffix as .java.
Then we throw this file under the e-drive (any location is fine), and type cmd into it to enter enter.
And then it went into command line mode.
Then javac HelloWorld.java compiles the file.
After compilation, you will find that there is an extra .class file, which proves that the compilation is successful.
Then java HelloWorld runs the file
The two output statements we wrote earlier have already been output. Are you excited and happy? Then let's compare it.
All right. Then after the output, it proves that everyone is getting started. Will compile helloworld on its own.
The above is all the contents of this article "how to use java". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.