Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

PHP 5 allows developers to declare constructor methods for classes. Classes which have a constructor method call this method on each newly-created object, so it is suitable for any initialization that the object may need before it is used.

change to

Create to File+Write to File Using Java NIO

Java+Windows Creating Text File

ActiveMQ-Delete Inactive Destinations Queue or Topic

ActiveMQ doesn’t flush out or remove inactive Destinations like topic and queue automatically. Inactive destinations are those topics and queue that doesn’t have any subscribers. To let ActiveMQ removes the inactive Destinations, modify the activemq.xml and insert the highlighted portion of the broker element. You need to restart the ActiveMQ service after saving the changes. …

JDK and JRE File Structure

This document gives an overview of the JDK directories and the files they contain. This page may also be used as a reference for the file structure of the JRE. To see the file structure of the Runtime Environment, just look at the description of the contents of the JDK’s jre directory on this page. …

How To Learn Java In Easy and Simple Steps?

1. Learn how to setup your computer to run java programs. 2. Take and glance on how to create your first java program.

Using the this Keyword

Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You can refer to any member of the current object from within an instance method or a constructor by using this. Using this with a Field The most common reason …

How to get Java System Properties?

The following table describes some of the most important system properties Key Meaning “file.separator” Character that separates components of a file path. This is “/” on UNIX and “\” on Windows. “java.class.path” Path used to find directories and JAR archives containing class files. Elements of the class path are separated by a platform-specific character specified …