Java basics 1I. java Development Tools
Editplus: Connection Configuration between Editplus and jdk, such as javac (Compilation), java (running), and javap (view bytecode)A) configuration content:I. javac (Compilation): the parameter is-d.
Java 8 Lambda expression tutorial
1. What is a Lambda expression?
Lambda expressions are essentially an anonymous method. Let's take a look at the following example:
Public int add (int x, int y ){Return x + y;}
After converting it to a Lambda
" ABC " New String ("ABC");String str1 = "abc"; it is possible to create or not create an object, and if the string "ABC" does not exist in the Java string pool, it creates a string object ("abc") in Java string dominant. Then str1 points to this
He is an important keyword in object-oriented language, and understanding and mastering the use of this keyword is essential to the robustness and elegance of our code. And JavaScript's this is different from Java, C # and other pure object-oriented
JavaScript ObjectsObjectECMA-262 defines an object as an unordered collection of properties, each of which holds an original value, object, or function. Strictly speaking, this means that the object is an array of values that are not in a particular
Chaining calls we usually use a lot, such as $ (ele) in jquery. Show (). Find (), hide (), and so on, such as $http.get (URL) in Angularjs. Success (fn_s). Error (Fn_e). But this is already packaged chain call, we can only realize the convenience of
Prototype traps:We should pay attention to two kinds of behavior when dealing with the prototype problem.1. When we perform a complete substitution of the prototype object, it is possible to trigger some kind of exception in the prototype chain.2.
Original articles, welcome reprint. Reprint Please specify: Dongsheng's BlogWhen you extend a type, you can also add a new constructor. Value types differ from reference type extensions. Value types include types other than classes, primarily
Encountered in the interview, ask JS how to achieve inheritance, in fact, the best way is the constructor + prototype, today in the discussion, found that their previous understanding of some of the misunderstandings, specifically written out,
Use Java operation time feeling real egg hurts, or My big C # comfortable, a datetime all doneThe Date here refers to Java.util.Date.Get current time: Creates a date object of the current time date times = new Date ();Where the egg
In this chapter we discuss another aspect of the fill container map, the previous two chapters we use list as a container, this chapter we used map.And here's an explanation of why the generator has always been used, but he is the builder design
Class-Linux general technology-Linux programming and kernel information. The following is a detailed description. 1: Use inheritance in Java
The most powerful feature in Object-Oriented Programming is class inheritance. class inheritance allows you
Javascript is also an object-oriented language, but it is a Prototype-based language, rather than a class-based language. Next, I will introduce you to the knowledge about Prototype in Javascript. If you are interested, refer to Javascript as an
Object, which is a very important stem in JavaScript, is a good understanding of how it is directly related to your basic understanding of the entire JavaScript system, which is, in plain parlance, a group of objects. Beep )。 several common types of
Angularjs source code parsing: injector and angularjsinjector
Introduction
Injector is used for Automatic Parameter injection, for example
function fn ($http, $scope, aService) {}
Ng automatically transmits $ http, $ scope, and aService as
Basic JavaScript knowledge (JSON, Function object, prototype, and reference type), jsonfunction
1. JSON
Concept: JavaScript Object Notation (JavaScript Object Notation) is a lightweight data exchange format.
Features: Easy For programmers to write
Javascript: this
This article mainly introduces this in Javascript. If you need this, you can refer to it.
Introduction
This plays a very important role in various opposite object programming and is mainly used to point to the called object.
ECMAScript has two development modes: 1. Functional (procedural), 2. object-oriented (OOP). An object-oriented language has a flag, which is the concept of a class, through which any number of objects with the same properties and methods can be
first, Create a transport class, define the properties and methods of the class, and write a good construction method, first look at the constructor without parameters: public class Transport { // name public String name; // type of
/** @ JavaScript does not have the concept of classes, so base on object creation is different from object-oriented language* The common methods of object creation and their limitations* @ Use object or object literal to create objects* @ Factory
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.