Tutorial by Topics: m

The nameof operator allows you to get the name of a variable, type or member in string form without hard-coding it as a literal. The operation is evaluated at compile-time, which means that you can rename a referenced identifier, using an IDE's rename feature, and the name string will update with i...
A Stream represents a sequence of elements and supports different kind of operations to perform computations upon those elements. With Java 8, Collection interface has two methods to generate a Stream: stream() and parallelStream(). Stream operations are either intermediate or terminal. Intermediate...
Lambda expressions provide a clear and concise way of implementing a single-method interface using an expression. They allow you to reduce the amount of code you have to create and maintain. While similar to anonymous classes, they have no type information by themselves. Type inference needs to happ...
The java.util.Map interface represents a mapping between keys and their values. A map cannot contain duplicate keys; and each key can map to at most one value. Since Map is an interface, then you need to instantiate a concrete implementation of that interface in order to use it; there are several M...
int read(byte[] b) throws IOException Note that most of the time you do NOT use InputStreams directly but use BufferedStreams, or similar. This is because InputStream reads from the source every time the read method is called. This can cause significant CPU usage in context switches into an...
Default Method introduced in Java 8, allows developers to add new methods to an interface without breaking the existing implementations of this interface. It provides flexibility to allow the interface to define an implementation which will be used as default when a class which implements that inter...
Note that a ViewTreeObserver instance associated with a View instance can become invalid while that View is still alive. From the View.getViewTreeObserver javadocs: // The returned ViewTreeObserver observer is not guaranteed to remain // valid for the lifetime of this View. If the caller of this...
Concurrent computing is a form of computing in which several computations are executed concurrently instead of sequentially. Java language is designed to support concurrent programming through the usage of threads. Objects and resources can be accessed by multiple threads; each thread can potentiall...
AVD stands for Android Virtual Device
Material Design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. Also see the original Android blog post introducing the Design Support Library Official Documentation https://developer.android.com/design/material/index.html Guidelines for Mat...
public type name[ = value]; private type name[ = value]; protected type name[ = value]; type name[ = value]; public class name{ class name{ From the Java tutorial: Access level modifiers determine whether other classes can use a particular field or invoke a particular method. There a...
Documentation for java code is often generated using javadoc. Javadoc was created by Sun Microsystems for the purpose of generating API documentation in HTML format from java source code. Using the HTML format gives the convenience of being able to hyperlink related documents together. /** -- ...
This documentation page is for showing details with example about java class constructors and about Object Class Methods which are automatically inherited from the superclass Object of any newly created class. public final native Class<?> getClass() public final native void notify() pu...
The 8 primitive data types byte, short, int, long, char, boolean, float, and double are the types that store most raw numerical data in Java programs. int aInt = 8; // The defining (number) part of this int declaration is called a literal. int hexInt = 0x1a; // = 26; You can define literals...
Java enums (declared using the enum keyword) are shorthand syntax for sizable quantities of constants of a single class. [public/protected/private] enum Enum_name { // Declare a new enum. ENUM_CONSTANT_1[, ENUM_CONSTANT_2...]; // Declare the enum constants. This must be the first line inside of t...
ParameterDetailsGoogleMapthe GoogleMap is an object that is received on a onMapReady() eventMarkerOptionsMarkerOptions is the builder class of a Marker, and is used to add one marker to a map. Requirements Google Play Services SDK installed. A Google Console Account. A Google Maps API Key o...
RMI requires 3 components: client, server and a shared remote interface. The shared remote interface defines the client-server contract by specifying the methods a server must implement. The interface must be visible to the server so that it can implement the methods; the interface must be visible...
List comprehensions in Python are concise, syntactic constructs. They can be utilized to generate lists from other lists by applying functions to each element in the list. The following section explains and demonstrates the use of these expressions. [x + 1 for x in (1, 2, 3)] # list comprehen...
The clz32 method is not supported in Internet Explorer or Safari
PHP's functional programming relies on functions. Functions in PHP provide organized, reusable code to perform a set of actions. Functions simplify the coding process, prevent redundant logic, and make code easier to follow. This topic describes the declaration and utilization of functions, argument...

Page 2 of 161