Skip to content

Instantly share code, notes, and snippets.

View pradipgarala's full-sized avatar

pradip garala pradipgarala

  • Gandhinagar, Gujarat
  • 04:37 (UTC +05:30)
View GitHub Profile
@pradipgarala
pradipgarala / HowInterfaceReference1.java
Last active September 6, 2019 08:16
interface Interface { } class Class implements Interface { } public class Test { public static void main(String[] argv) { Interface Interface = new Class(); System.out.println(Interface.toString()); } }
interface Interface
{
}
class Class implements Interface
{
}
public class Test
{
@pradipgarala
pradipgarala / toStringAndHashCode.java
Last active January 29, 2017 07:39
relation between toString() and hashCode()
package com.pradip;
public class Test {
public static void main(String[] args) {
Test t = new Test();
String str = t.toString();
String toStringHexaDecimal = str.substring(str.indexOf("@") + 1);
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:sec="http://www.springframework.org/schema/security"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.2.xsd