Java - Is there Java equivalent for C# new keyword in method signature? How I can replace final methods in Java?
<p>As you maybe know, as Java language perspective all method in C# are final by default (also vice versa, all methods in Java are virtual as C# language perspective).</p>

<p>In C# we can replace final (non-virtual) methods by <code>new</code> keyword (<a href="http://msdn.microsoft.com/en-us/library/435f1dw2%28v=vs.80%29.aspx" rel="nofollow">please see this</a>). There is not anyway to replace final methods in Java?</p>

<p>Edit 1:</p>

<p>I just want to mention that method replacing is not same with method overriding. Please run this C# code:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComapreOverrideWithNew
{
    class Program
    {
        static void Main(string[] args)
        {
            var cat = new Cat();
            cat.PrintNameByNew();
            Console.WriteLine(cat.GetNameByNew());
            cat.PrintNameByOverride();
            Console.WriteLine(cat.GetNameByOverride());
            Console.ReadKey();
        }
    }
    class Animal
    {
        public String GetNameByNew()
        {
            return "Animal";
        }
        public void PrintNameByNew()
        {
            Console.WriteLine(GetNameByNew());
        }

        public virtual String GetNameByOverride()
        {
            return "Animal";
        }
        public void PrintNameByOverride()
        {
            Console.WriteLine(GetNameByOverride());
        }
    }
    class Cat : Animal
    {
        new public String GetNameByNew()
        {
            return "Cat";
        }

        public override String GetNameByOverride()
        {
            return "Cat";
        }
    }
}
</code></pre>

<p>For example <a href="http://docs.oracle.com/javase/tutorial/java/IandI/final.html" rel="nofollow">http://docs.oracle.com/javase/tutorial/java/IandI/final.html</a> is just talking about overriding. Also this code have not any compiler warning on compilation.</p>
