Selectors
$("*") - All Elements
$("#") - Element id
$(".") - All element with Class Name
package interviewprograms; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
public class FindTheDuplicates { |
var formData = new FormData(); | |
$.ajax({ | |
url : "${url}", | |
type : "POST", | |
contentType : false, | |
/* enctype: "multipart/form-data", */ | |
processData : false, | |
data : function() { | |
var inputs = $('#formObject').serializeArray(); | |
console.log("-----------------Sending " |
package singleton; | |
public class ThreadSafeSingleton { | |
//1.private Constructor | |
private ThreadSafeSingleton() { | |
} | |
//2.Only Instance of the Class | |
private static ThreadSafeSingleton instance = new ThreadSafeSingleton(); |
package singleton; | |
public class LazyInitialization { | |
//1.private Constructor | |
private LazyInitialization() { | |
} | |
//2.Only Instance of the Class | |
private static LazyInitialization instance = null; |
package singleton; | |
public class EagerInitialization { | |
//1.private Constructor | |
private EagerInitialization() { | |
} | |
//2.Only Instance of the Class | |
private static final EagerInitialization instance = new EagerInitialization(); |
package singleton; | |
public class StaticBlockInitialization { | |
private StaticBlockInitialization(){} | |
//1.private Constructor | |
static{ | |
try{ |