Question: How to restrict a class from creating multiple objects? Restring a class from creating multiple objects or restricting class from creating not more than three objects this... read more ?
Simple Way to Import all Missing Packages at Once : Eclipse shortcut
Posted by: Instanceofjava Posted date: March 13, 2016 / comment : 0 java eclipse
1.How to import all missing packages at once in java program eclipse: While writing a java program or copied some line to eclipse then we need to import... read more ?
Java Basic example program to check particular value exists in hashmap
Posted by: Instanceofjava Posted date: March 13, 2016 / comment : 0 hashmap , java Collections interview Questions
1.Basic Java example program to check particular value exists in hashmap package com.javacheckvaluehashmap; import java.util.Hashmap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; public class HashmapExample{ public... read more ?
Basic Java Example program Check if a particular key exists HashMap
Posted by: Instanceofjava Posted date: March 13, 2016 / comment : 0 hashmap , java Collections interview Questions
1.Basic Java example program to check particular key exists in hashmap package com.javacheckkeyhashmap; import java.util.Hashmap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; public class HashmapExample{ public... read more ?
Six different ways to iterate list in java
Posted by: Instanceofjava Posted date: March 11, 2016 / comment : 1 java Collections interview Questions
How many ways we can iterate list in java? We can iterate list in 6 different ways in java. For Loop Enhanced For Loop While Loop Iterator Collections... read more ?
Java program to insert an element to ArrayList using ListIterator Example
Posted by: Instanceofjava Posted date: March 11, 2016 / comment : 1 ArrayList , java Collections interview Questions , ListIterator
1.Basic Java example program to insert element using list iterator to arraylist package com.javaIteratearraylistiterator; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; public class IterateListIteratorArrayList{ public static... read more ?
Java example program to print message without using System.out.println()
Posted by: Instanceofjava Posted date: March 10, 2016 / comment : 0 Core java Interview Questions
Is it possible to print message without using system.out.println? (adsbygoogle = window.adsbygoogle || []).push({}); Yes its possible to print message without using System.out.println(""); System.out.write("www.instanceofjava.com \n".getBytes()); System.out.format("%s", "www.instanceofjava.com \n")... read more ?