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

This week's study is some simple basic compilation of Java, anti-compilation and interpreter. Then learn to use git the upload to [email protected] for code hosting, git is a beginner, need to build a library and then remote upload code, if the

Java Basics-Custom Exception usage exercises

Personally think first to know two points:1. The parent class of the exception is Throwable2. Errors, exceptions are divided into three categories, but only one of the procedures required to processNow write a small example:Requirements: Both sides

Java Concurrency Knowledge collation

The front-end time to learn Java concurrency notes, about 40 articles.1. Java Concurrency BasicsConcurrency Basics (i) Threading introductionConcurrency Basics (ii) API summary for the thread classConcurrency Basics (iii) Java thread

Understanding of instanceof Keywords in Java

Concept: The instanceof operator in Java is used to indicate at run time whether an object is an instance of a particular class. Instanceof Indicates whether this object is an instance of this particular class or its subclasses by returning a

Java Foundation Enhancement Concurrency (ii) common multithreading implementation methods

OverviewThere are 2 common ways to implement multithreading:1. Inheriting the thread class2. Implement the Runnable interfaceThis is commonly used because multithreading can also be achieved through the thread pool in the Juc (java.util.concurrent)

Java Bitwise operators

ObjectiveRecently, looking at the source code of HashMap, I saw some bit operators and decided to study the bit operators in depth.Bit arithmeticDefinition: All the numbers in a program are stored in binary form in the computer's memory. Bitwise

The difference between int and integer in Java

1, int is the basic data type, the int variable stores the numeric value. An integer is a reference type, which is actually an object, and the integer stores the address of the referenced object.2.Integer i = new integer (100);Integer j = new

Java Concurrency (i)--thread-safe containers (top)

The Java thread-safe container consists of two main categories: Vector, Hashtable as well as the wrapper class Collections.synchronizedList and Collections.synchronizedMap ; Java 5.0 introduces a java.util.concurrent package that

Java-preliminary Understanding-Common Object API (collection framework-generics-generics-limits-the embodiment of the upper limit)

One.Now to say the app, look at the annotations in the API,Here's a method AddAll there is Extedns E, let's see when this method is used. Here are three collections, with storage person,student, and worker's.And then we'll show you this advanced

Java Installation and Configuration development environment

This article will document some of the steps for installing Java and Configuring the Java environment, as well as the configuration of the Java-based extensible development platform Eclipse's Android development environment.Preparation Tools1.JDK

Two polygon questions for method rewriting in Java

1: What is the difference between a method override and a method overload? Can the method overload change the return value type?Method overrides:In a subclass, a behavior that is identical to the method declared in the parent class appears.

java--threading creation, thread pool

ThreadsMultithreading is a program in which multiple threads are executing concurrently.How the CPU works under multi-threadingIn fact, theCPU ( central processing Unit ) uses preemptive scheduling mode to switch between multiple threads at high

The difference between the Java.lang.Comparable interface and the Java.util.Comparator interface

Java comparator and comparable when a collection or array that needs to be sorted is not a purely numeric type, you can typically use comparator or comparable to implement object sorting or custom sorting in a simple way.1.Comparable

Two synchronization modes of Java, the difference between synchronized and Reentrantlock

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. http://blog.csdn.net/chenchaofuck1/article/details/51045134Java when writing multi-thread program, in order to ensure thread security, need

Java non-recursive implementation of maze problem

This topic is my one course design, is also my first time to finish a small thing independently, to tell the truth, last night that moment was very fulfilling. The whole person was happy to jump up in the study room. Because before has been

Immutable classes in Java

The immutable class is the name of the class that cannot be re-assigned after it is instantiated, and the eight wrapper classes and java.lang.String provided by Java are immutable classes.Rules to be followed for creating custom immutable classes:1.

java--Object-oriented Advanced (construction method, This,super)

Construction MethodIn development, it is often necessary to define the object's property value while creating the object, such as the employee's entry company should be clear about his name, age and other attributes.The construction method is the

The basic language for getting started with Java

In the previous chapter, the reader has learned how to build the Java development environment and the Java program development process. Start with this article to explain the basic language of Java. The grammar of these basic languages is similar to

Tomcat exception: The Tomcat server configuration at \ Servers \ Tomcat v9.0 Server at localhost-c, serverslocalhost-c

Tomcat exception: The Tomcat server configuration at \ Servers \ Tomcat v9.0 Server at localhost-c, serverslocalhost-c Today, when I wrote several Java engineering projects using Eclipse java EE and then wrote the jsp page of the java EE Project,

In the problems caused by Arrays. asList (), arrays. aslist

In the problems caused by Arrays. asList (), arrays. aslistPreface I recently saw a problem on the Internet, which is similar to the following (marked as problem 1 ): public class Demo { public static void main(String[] args) {

Total Pages: 6206 1 .... 1150 1151 1152 1153 1154 .... 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.