Categories
csharp

Difference between property and field in C#

In C# different between fields and property of class, explained with example.

Categories
Java

How to get current user name using Java

Java example to get current user name on windows OS.

Categories
csharp

How to check current user role is admin

CSharp example to check current user is admin or not using dotnet framework classes.

Categories
Java

Java DateTime extension class

Java class to extend java.util.Date class to add some methods given in c# like addSeconds, addMinutes, addDays, addYears etc. This are really helpful.

Categories
Java

Class to calculate differences in two dates

Java example for calculating difference between two date in different units. You can use this utility class in you java program.

Categories
Article

When to Override equals and hashCode in Java Class

Java, when you should override equals and hashCode methods. Example of overriding equals and hashCode in Java.

Categories
Jquery

Example of jquery and JavaScript to disable context menu

Example of javascript and jquery to disable context menu on html page and html elements.