1. Three basic features of object-oriented programming: Inheritance (inheritence), Encapsulation (encapsulation), polymorphism (polymorphism)2. Encapsulation: Classes contain data and methods, and the data and methods in a class constitute the
The Join method is used to cause the owning thread object to execute the Run method gracefully, and to block the current thread indefinitely until the owning thread destroys it and then executes the logic of the current thread.First, look at the
1. If the class Yuangong is declared public, the class Yuangong must be saved in the name Yuangong . java files; 2, conversely, a file contains a maximum of a top-level public class, and the public class name is the same as the file name. For
85-The inner class is divided into 4 kinds
Static Inner class
Inside a class, a class decorated by the static keyword is called a static inner class, and its inside can only access static members and methods of the outer class! After
First, IntroductionMyBatis, similar to hibernate, is a simplified framework for database operations, but unlike Hibernate, MyBatis is more flexible and the overall framework is smaller, which is reflected in the need for our handwritten SQL
Often use MyEclipse or Eclipse editor to write Java Program Ape code. You may often encounter a yellow cordon: Dead Code; General Program apes encounter these problems will be ignored, anyway, it does not affect the program's compilation run. Yes,
/** Coding Specification:* 1, all the names follow the "see the name of the understanding" principle* 2, all the names do not allow the use of Chinese characters or pinyin* 3, Java Engineering naming recommendations using lowercase, such as: OA, CRM,
Package Day06;import Java.util.scanner;public class Homework {public static void main (string[] args) {Scanner Scanner = NE W Scanner (system.in); String string = "Guessinggame"; System.out.println (string+) "Welcome to the crossword puzzle!" 500
Java Garbage Collection OverviewJava GC (Garbage Collection, garbage collection, garbage collector) mechanism, is one of the main differences between Java and C++/C, as a Java developer, generally do not need to specifically write memory recycling
Build a Java development environment under MacMAC Configuration Java Development environment: Eclipse + jdk1.8ObjectiveBefore you build your development environment, take a look at some concepts: JAVA,JAVASE,JAVAEE,JVM,JDK,JRE
Java
Comparable & Comparator are used to implement the comparison and ordering of elements in the collection, except that comparable is the sort of method implementation defined within the collection,Comparator is the sort implemented outside the
In-depth analysis of Java Web Item31 -- JDBC (MySQL) Transaction ManagementI. Concepts of transactions
A transaction refers to a logical group of operations that constitute each unit of this group of operations. If the transaction is successful,
Pack netbeans into jar and netbeans into jar
--> Press Ctrl + C to copy the code
Right-click build. xml to generate SwitchHexAndChinese. jar.
Generated file
Set the Java Development Environment on macbookpro, macbookpro
Okay, I went to the other side of the earth, and because my PC is not there, only one MacBook Pro can be used for development. This article should be seen as an enhanced bookmarkdonet. I
Source code analysis: HotSpot GC Process (1), hotspotgc
For the garbage collection process of HotSpot virtual machines, this section analyzes and introduces the garbage collection content of MarkSweepPolicy and TenuredGeneration under the default
Java learning diary 9-exception, Java learning diary 9-
Exception)
1. What is an exception?
Exceptions are errors in the program, such as array out-of-bounds and NULL pointer access. In Java, everything is an object, and exceptions are no exception.
Simple and lightweight blog platform: Hexo detailsWhat is Hexo?
Hexo is a simple, lightweight, Node-Based Static blog framework that allows you to easily generate static Web pages hosted on github and Heroku. Reference The Hexo author @ tommy351:
ISP -- Interface Segregation Principle, segregation
1. ISP Overview (ISP -- Interface Segregation Principle ):
It is better to use multiple dedicated interfaces than to use a single total interface.
The dependence of a class on another class
Java generics and java generics
1. OverviewBefore introducing the fan type, Java types include the original type and the complex type. The complex types include arrays and classes. After the fan type is introduced, a complex typeYou can split it
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