Java basics 2: abstract classes, interfaces and polymorphism, java Polymorphism
I think I can write well on the basics of Java. I used to post it on my other blog. It must be original. I will share it with you now.
Zookeeper ------------------------------------------------
Dark Horse programmer --- java basics-configure and set environment variables for JDK, --- java-jdk
------ Java training, Android training, iOS training, and. Net training. We look forward to communicating with you! -------
1. Introduction to JAVA
JAVA basics: use Java to implement zip compression and decompression-Linux general technology-Linux programming and kernel information. The following is a detailed description. Due to limited network bandwidth, Data File compression is conducive to fast data transmission over the Internet, while also saving the server's external storage space.
Java basics for Java programmer test interview
1. ==difference between equals and hashcode
① = Is used to compare whether a value is equal, or to compare whether the reference is equal, that is, to compare whether it points to the same object.
② The equals method is the method provided by the Object. Therefore, each Object has the equals method and its implementa
, when the program executes, the main method first enters the bottom of the stack memory, then the code from the top down to execute the loading method, etc. will be stacked one by one, also known as compression stack.3. Heap memory , loading instantiated objects executed in the stack memory, or some reference data types will open up a space in the heap memory and generate a 16-based address to the reference name.Attached: The specific implementation will be in line with the specific procedures
This -- java basics -- who exactly does this mean ??, This -- java --- this
Java basics --- this keyword
I have read a lot of blogs on the Internet before, And I have various explanations for this keyword, but I am very vague. I still don't understand it after reading it, un
Web and network basics, HTTP packets, working principles, HTTP Communication Technology in Java, java Communication Technology
I. web and network Basics
1. HTTP history
1.1 concept of HTTP:
HTTP (Hyper Text Transfer Protocol) is a communication Protocol that allows the Transfer of Hypertext Markup Language (HTML) docu
Java multithreading BASICS (4) traditional Java thread synchronous communication technologyJava multithreading BASICS (4) Java traditional thread synchronous communication technology coding to implement the following functions
The sub-thread loops for 10 times, the main thre
Java basics-set (3)-generic, enhanced for, tool class, java tool class
Next, Java basics-set (2)-iterator and Map set
6. Generic(1) Definition:
Generic is a special type that puts explicit types of work in the process of creating objects or calling methods.(2) format:
Dark Horse programmer-java basics-Basic Knowledge (3), dark horse java
------ Android training, java training, and hope to communicate with you! ------
1. Process Control 1. Select structure statements
Select a structure statement to execute different statements according to different conditions. Conditional statement
Java basics-005, java-00527. Purpose of garbage collection in Java and timing of garbage collection
The purpose of garbage collection is to identify and Discard unused objects to release and reuse resources.
If the object reference is set to null, the garbage collector does not immediately release the memory occupied
JAVA basics: conversion between Java variable types-Linux general technology-Linux programming and kernel information. For details, see the following. We know that Java's data types are divided into three categories: Boolean, numeric, and numeric. The numeric type is classified into integer and floating-point; compared with the data type, java's variable types in
startup, shared by all threads, stores object instances, and managed by the Java Garbage collector (GC) for memory release.Method area: Used to store class information that has been loaded by the virtual machine, constants, static variables, code compiled by the immediate compiler, and so on, as well as all threads shared by the thread.Chang (Constant Pool): Part of the method area, the Java language does
Java BASICS (6) -- classes and objects, java beginners objects
I finally wrote the last knowledge point in the entry article. Classes and objects are two frequently-mentioned words in Java. classes can actually be seen as objects and define the functions of objects. Java is
language
There is no comma operator in 6.Java, but you can separate expressions with commas in the first and third parts of the for statement
V. Type conversion
1. If there is a loss of precision in the conversion, it must be done by forcing type conversion (including Int->float float->double, etc.)
Converting an integral type to a character type in 2.Java requires a type cast
Vi. Pro
Main (string[] args){Inti = 1,k = 0;do{if (i%3==0){if (kSystem.out.println (i);k++;}i++;}while (i}}Class for{publicstatic void Main (string[] args){Inti = 1,k = 0;for (; i{if (i%3==0k{System.out.println (i);k++;}}}}19. Nested Loops and Process ControlNested loops: Loop inside loopAssuming that the number of cycles in the outer loop is M, the number of cycles in the loop is n times, then the number of cycles in the inner loop needs M * N times.Eg: The multiplication table is printed using the ne
[JAVA Basics] annotation, java Annotation
For the following content, refer to java programming ideology-4. The jdk version is jdk5.0, which is somewhat old-_-|What is annotation?
The introduction of JAVA SE5, also known as metadata, can be directly added to the Code to fully
Java basics-methods required to design a Java class-general Linux technology-Linux programming and kernel information. For details, refer to the following section. (1) The first letter of the class name should be capitalized. The first letter of the field, method, and object (handle) should be in lowercase. For all identifiers, all the words in them should be pla
of field objects that reflect all the fields declared by the class or interface represented by this class object
Public classObtainfield { Public Static voidMain (string[] args)throwsException {Class clazz= Class.forName ("Com.classTest.classload.OF"); Field[] FD=Clazz.getfields (); for(Field f:fd) System.out.println (F.getname () + "|" +F.gettype ()); }}classof { PublicString name; Public intAge ; PrivateString address;}6. Advantages and disadvantages of reflection mechanismThe a
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.