20165336 2017-2018-2 "Java Programming" 1th Week study Summary

20165336 2017-2018-2 "Java program design" 1th Week study summary textbook study summary Java status, features: Java has object-oriented, platform-independent, security, stability and multi-threaded and other excellent features. Java's platform-

There are eight basic data types for Java

BYTE, short, int, long, float, double, char, Boolean1) Four types of integers (byte, short, int, long): byte:8 bits, used to represent the smallest data units, such as data in files, -128~127 short:16 bits, rarely used, -32768 to 32767 int:32 bits,

Java Base array Set MAP collection synthesis application Generate random string "00000001" fruit with 0 item number problem

Packagecom.swift.test01;/*There are four kinds of fruits (apples, bananas, watermelon, oranges) 1, to each kind of fruit set a product number, product number is 8 0-9 random number, the product number can not be duplicated, the minimum value "0000000

Java Instance – String performance comparison test

Packagestring; Public classStringcompareperformance { Public Static voidMain (string[] args) {/*** Comparison of string performance tests*/Long StartTime=System.currenttimemillis (); for(inti = 0; i ) {String str1= "Zhu Xiao"; String str2= "Zhu

Java Layered Architecture

Service is the business layerDAO (data access Object) access1.JAVA Action layer, service layer, modle layer and DAO layer function distinguish? (the service layer described below is biz)First, this is now the most basic layering method, combining

View Java Process Information--JPS command details

Format[[email protected] ~]# jps -hillegal argument: -husage: jps [-help] jps [-q] [-mlvV] []Definitions: : [:]Main parameter explanation: Options function -Q Output only Lvmid, omit the

Java Series Spring Learning--springmvc annotation parameter passing (vi)

First, the binding parameters are annotated as follows  @RequestParam Bind the order request data, either as a parameter in the URL or as a parameter for a form submission or as a file to upload.It has three properties:value is used to set the

Game to achieve particle collisions, pure Java

Package com.totoo.TouhouMassLight;Import Android.content.Context;Import Android.graphics.Bitmap;Import Android.graphics.Canvas;Import Android.graphics.Color;Import Android.graphics.Paint;Import android.graphics.drawable.BitmapDrawable;Import Android.

Inheritance rules for Java generic classes

First look at the use of the Java generic class:/*** A generic method: Makes the program more secure * and can be used more *@authorDing * * *@param*/classPair{ PrivateT first; PrivateT Second; //Instantiating type variables Public Static

Four ways to "reprint and organize" Java to parse or generate XML

Reference articles1:http://blog.csdn.net/clemontine/article/details/530113622:http://www.jb51.net/article/98456.htmhttp://blog.csdn.net/javawebrookie/article/details/49560643Parsing XML in 1.DOM modeDom parsing is an XML file loaded into memory,

Java-Object Oriented

object class:  11 methods:   First class method: ToString, equals, hashcode;   the second type of method: Clone, Finalize, GetClass;   Third class method: 3 Wait, notify, Notifyall;   method:   ToString: Used to describe information

The number of bytes in Java that are literal characters

In the Java language, the number of bytes in Chinese characters depends on how the character is encoded, and in general, when iso8859-1 encoding is used, a Chinese character is only 1 bytes as an English character, and a Chinese character is 2 bytes

Java Virtual machine-class file

The result of code compiling from local machine code to bytecode, is a small step in the development of storage format, but it is a big step in the development of programming language. Computers only know 0 and 1, so our program needs to be

Jstack tool introduction, jstack Tool

Jstack tool introduction, jstack Tool I. Application scenarios When a java application's CPU usage is relatively high or reaches 100% or above, you need to analyze where the code is faulty. In this case, you can use the jstack command Ii. How to Use

What is the difference between equals and = ?, Equals differences

What is the difference between equals and = ?, Equals differencesEquals and = I, a beginner in Java, has been annoyed by the equals () method for a long time. I cannot figure out when to compare the address and when to compare the content? Because

Java SE learning [1], javase Learning

Java SE learning [1], javase Learning I have learned java for more than one month. It takes more than 100 hours to calculate the time spent on it, the progress is that the variable, loop, branch, and array are finished, and the object-oriented part

Spring framework study Note 5: SpringAOP example, springspringaop

Spring framework study Note 5: SpringAOP example, springspringaop 1. Import package: Import the two packages in spring   Import other packages (download them online ):   2. Prepare the target object: Package service; public class UserServiceImpl

Redis implements distributed locks, redis

Redis implements distributed locks, redis When I cleared the email, I found a previous article about the implementation of the redis distributed lock. Someone replied-I randomly scanned the article to prevent deadlocks, the idea is to use setnx to

Java CardLayout layout example, javacardlayout

Java CardLayout layout example, javacardlayoutI. Design Process Create a Main Window jfCreate two main editions: mainJP1 and mainJP2Create subJP1, subJP2, and subJP3Create three tags, assign a value of 1st pages, 2nd pages, and 3rd pagesCreate two

JAVAEE--BOS logistics project 04: learning plan, datagrid, paging query, batch deletion, modification function, javaee Logistics Project

JAVAEE--BOS logistics project 04: learning plan, datagrid, paging query, batch deletion, modification function, javaee Logistics Project1. LearningPlan 1. Usage of datagrid (important) N rendering static HTML as a datagrid Style N send an ajax

Total Pages: 6206 1 .... 1617 1618 1619 1620 1621 .... 6206 Go to: GO

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.