Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ Java memory model subclasses     - About Linux backdoor (Linux)

- iOS developers - a simple factory pattern and OC reflection (Programming)

- Taught you how to build your own VPS server (Server)

- Permissions and attributes of files and directories under Linux (Linux)

- Oracle 11gr2 new APPEND_VALUES tips (Database)

- Ubuntu treated with cue file to ape and wav files automatically track points (Linux)

- What is the Docker (Linux)

- Python interview must look at 15 questions (Programming)

- To install Xen in Ubuntu 12.04 (Linux)

- Install Oracle JDK 8 and JVM class loading mechanism in Linux (Linux)

- Virtualbox virtual machine can not copy CentOS Network (Linux)

- Linux installed Cisco Packet Tracer (Linux)

- Linux partition command (Linux)

- What have we learn from the front-end application Nodejs (Programming)

- J2EE Example of Filter (Programming)

- Ubuntu 14.04 / 14.10 how to install Mate 1.10.0 (Linux)

- RedHat Performance Tuning (Server)

- RVM installation instructions (Linux)

- Oracle 11g forget approach SYS and SYSTEM password (Database)

- Install Java on RHEL6 (Linux)

  Java memory model subclasses
  Add Date : 2018-11-21      
  Java memory model subclasses

package subClass;
class ParentClass {
public void fun () {
System.out.println ( "ParentClass ---> fun ()");

class SubClass extends ParentClass {
int i = 100;
String name = new String ( "SubClass");
public void fun () {
super.fun ();
System.out.println (name + "--->" + i);

public class TestExtends {
public static void main (String args []) {
SubClass sub = new SubClass ();
sub.fun ();

1.super is a reference to the parent class, when jvm loaded subClass, the reference to the parent class (super) loaded into subclasses stack memory.

2.this is a subclass reference when jvm loaded subClass, will refer to the current object (this) is stored in its own stack memory.

3. The specific call, first look to achieve the current sub-class, and if not, to find whether there is a parent class implementation.
- MongoDB relations, references, index query coverage (Database)
- Using VMware vSphere Client Linux virtual machine installation CentOS6.4 system (Linux)
- DBCA Error: ORA-19809: limit exceeded for recovery files process (Database)
- Installation Experience open source car Automotive Grade Linux system (Linux)
- How to install and use the Snort in Ubuntu 15.04 (Linux)
- Present Situation and Development Trend of firewall products (Linux)
- How to install and configure the KVM and Open vSwitch on Linux distributions (Linux)
- The new features of MySQL 5.7 Generated Column (index function) (Database)
- Java memory analysis tool uses detailed MAT (Programming)
- Depth understanding of DB2 table space (Tablespace) (Database)
- Linux system performance and usage activity monitoring tools -Sysstat (Linux)
- Install Rubinius testing Ubuntu 14.04 native threads (Linux)
- Arronax allows you to easily create desktop startup file (Linux)
- Android Service service applications and the phone SMS Listener Listener (Programming)
- C ++ in the elimination Wunused (Programming)
- Android imitation UC browser scroll up and down functions (Programming)
- JavaScript function part (Programming)
- Linux process group, session daemon (Linux)
- Tune in high resolution to 1280x800 in Fedora 14 (Linux)
- Smooth upgrade to OpenSSH 6.7 Procedure (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.