Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Programming \ Java memory model subclasses     - Learning the Linux powerful network management capabilities (Linux)

- How do I upgrade to Ubuntu 15.04 (Beta) (Linux)

- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)

- How to configure a server in a MySQL Cluster (Database)

- Circular list of Java programming (Programming)

- Oracle archive log size than the size of the online journal of the much smaller (Database)

- CentOS 6.6 x64 Oracle Database 11gR2 RAC automated installation scripts (Database)

- How do I upgrade from Ubuntu 15.04 to Ubuntu 15.10 (Linux)

- Build Golang development environment configuration on Ubuntu 14.04 (Linux)

- The easiest 11g Active DataGuard (ADG) to establish the configuration process (Database)

- To remove those IP is prohibited Fail2ban on CentOS 6/7 (Server)

- WordPress blog installation Redis Cache (Server)

- Debian 7.8 system installation and configuration process (Linux)

- Ubuntu 14.10 users to install Audio Recorder 1.5.7 (Linux)

- To execute the cp command prompt type skip folder under CentOS (Linux)

- Linux memory management (Linux)

- CentOS7 install JDK (Linux)

- Oracle Migration partition table (Database)

- Open remote MySQL database connection managed under CentOS (Database)

- Ceph tuning --Journal and tcmalloc (Server)

 
         
  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.
     
         
       
         
  More:      
 
- The oh-my-zsh into true my zsh (Linux)
- Java Graphics2D Paint (Programming)
- Customize the 404 error page Nginx (Server)
- Linux system security reinforcement (Linux)
- Oracle 12C with multi-column index (Database)
- CentOS7 management of systemd (Linux)
- MySQL Installation Troubleshooting (Database)
- Redis configuration file interpretation (Database)
- Nginx supports user multi-threaded downloads and resume broken (Server)
- Compile and install Redis and register as a system service under RedHat5.8 environment (Database)
- Oracle 11g upgrade PSU detailed steps (Database)
- How to use the process on the desktop xkill end Linux (Linux)
- Simple Calendar C language (Programming)
- How a lot of blocking malicious IP address in Linux (Linux)
- Java development environment to build under Ubuntu (Linux)
- Linux (RHEL6 CENTOS6 OLE6) VNC-SERVER Installation and Configuration (Server)
- Use MongoDB C # MongoDB official driving operation (Database)
- Swift notes - let you two hours to learn Swift (Programming)
- How to configure chroot environment in Ubuntu 14.04 (Linux)
- Linux, Oracle listen address modification (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.