<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8175021190731585116</atom:id><lastBuildDate>Thu, 14 May 2026 11:45:48 +0000</lastBuildDate><category>Interview Questions</category><category>Wallpapers</category><category>Photoshop</category><category>JSF</category><category>Do You Know ?</category><category>Latest NEWZ</category><category>FUN Zone</category><category>IBM  WebSphere Portal 6.1</category><category>Free Wallpapers</category><category>IPL T20</category><category>IBM  WebSphere Portal v6.1</category><category>ExtJS</category><category>Javascript</category><category>Spring</category><category>GWT</category><category>JSR 286 Portlets</category><category>Bolywood Wallpapers</category><category>IBM WebSphere Portal 6.0</category><category>Cricket WorldCup</category><category>Holywood Wallpapers</category><category>Windows XP Hacks</category><category>Black is Beautiful Wallpapers</category><category>JSF Portlets Apllication</category><category>free desktop wallpaper</category><category>Jasper Reports</category><category>Servlets</category><category>Log4j</category><category>Orkut themes</category><category>WCM</category><category>WebSphere Application Server (WAS)</category><category>Art Wallpapers</category><category>EJB3</category><category>How to use Eclipse</category><category>JPA</category><category>Java Concurrency</category><category>Java SE 6</category><category>Struts</category><category>Subclipse</category><category>i-Phone</category><category>AJAX</category><category>Best Practice</category><category>Exceptions and Resolutions</category><category>H1N1 Flu (SWIME Flue)</category><category>JAVA Design Patterns</category><category>JSP</category><category>JSR</category><category>AtoZ Photography World</category><category>Facts N Findings</category><category>i-Phone wallpaper</category><category>Calendar Wallpapers</category><category>Google Chrome Browser</category><category>Happy Birthday</category><category>JUnit</category><category>Maven POM</category><category>MyEclipse</category><category>Open JPA</category><category>PUMA</category><category>Railway TimeTable</category><category>Rational Application Developer (RAD)</category><category>Serials Going Wild</category><category>3D Wallpapers</category><category>Android Phones</category><category>AntiVirus Best</category><category>Festival</category><category>Glossary of Terms</category><category>IBM  WebSphere Portal v6.1.5</category><category>JSTL</category><category>JavaSE7</category><category>MAC</category><category>MULE</category><category>Regular Expressions</category><category>SOA</category><category>SQLSTATE values</category><category>Tomcat</category><category>Web 2.0</category><category>A to Z - Celebrities</category><category>All about You</category><category>Apache</category><category>Continuum</category><category>Credential Vaults</category><category>DAO - Java Access Object</category><category>DB2</category><category>Dependency Injection</category><category>Devotional Wallpapers</category><category>EAI</category><category>FIFA Worldcup 2010</category><category>Flex</category><category>GM Diet Plan</category><category>Google Logos</category><category>Hibernet</category><category>IBM WebSphere Porta</category><category>J2EE Design patterns</category><category>JPQL API</category><category>JQuery</category><category>JSF Oracle</category><category>JSR 168 Portlets</category><category>Java Data Objects - JDO</category><category>JavaFX</category><category>LOGO</category><category>Latest NEWZ; FIFA Worldcup 2010</category><category>Mobile Goodies and Newz</category><category>My Articles</category><category>New Year Wallpapers</category><category>POI API</category><category>Paintings</category><category>Picture Gallary Events</category><category>SCJP 5.0</category><category>SQL</category><category>Sitemap</category><category>Sony Ericsson</category><category>Subversion</category><category>TILES Framework</category><category>UML</category><category>UNIX</category><category>Valentines Day Wallpapers</category><category>WAS</category><category>WebServices</category><category>XML</category><category>XML Job Controller Language (xJCL)</category><title>atoztech : right things @ right place</title><description></description><link>http://atoz-tech.blogspot.com/</link><managingEditor>noreply@blogger.com (A to Z Stuff)</managingEditor><generator>Blogger</generator><openSearch:totalResults>727</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle/><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-4842102186760935870</guid><pubDate>Sun, 18 Sep 2016 13:36:00 +0000</pubDate><atom:updated>2016-09-18T06:36:39.352-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Do You Know ?</category><title>Solved  - USB Debuging - OnePlusX Greyed / Disabled / Enabled</title><atom:summary type="text">

Enable Developer Option in OnePlus X

Step 1: Unlock your phone and go to settings.

Step 2: Under Settings, scroll down and open About phone.

Step 3: Under About phone, find Build Number and tap seven times on it.&amp;nbsp;

After tapping seven times on it, 
you will get a message on your screen that you are now a developer. 
That’s it you have successfully enabled developer option on your </atom:summary><link>http://atoz-tech.blogspot.com/2016/09/solved-usb-debuging-oneplusx-greyed.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-2725053203143148057</guid><pubDate>Thu, 22 Oct 2015 11:54:00 +0000</pubDate><atom:updated>2015-10-22T04:54:20.447-07:00</atom:updated><title>Sort file contents</title><atom:summary type="text">

import java.io.*;
import java.util.*;

public class Sort {

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new FileReader("fileToRead"));
        Map&amp;lt;String, String&amp;gt; map=new TreeMap&amp;lt;String, String&amp;gt;();
        String line="";
        while((line=reader.readLine())!=null){
         map.put(getField(line),line);
        </atom:summary><link>http://atoz-tech.blogspot.com/2015/10/sort-file-contents.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-9068296017539255654</guid><pubDate>Thu, 22 Oct 2015 10:47:00 +0000</pubDate><atom:updated>2015-10-22T03:47:55.453-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Programs asked in interviews</title><atom:summary type="text">

Find out square root of a given number without using any built-in functions



&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static void findSquareRoot(double number)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{



&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;boolean isPositiveNumber = true;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double g1;



&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//if the number given </atom:summary><link>http://atoz-tech.blogspot.com/2015/10/programs-asked-in-interviews.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-2655187087016769502</guid><pubDate>Thu, 22 Oct 2015 07:54:00 +0000</pubDate><atom:updated>2015-10-22T00:55:16.027-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Mirror a B-Tree</title><atom:summary type="text">
public class BinarySearchTree {
 
 public class Node {
  private int data;
  private Node leftChild, rightChild;
 }

 public static Node mirrorBST(Node node) {
  &amp;nbsp;
  if (node.equals(null)) return(node);
  
  // swap children of this node
  Node tmp;
  tmp = node.leftChild;
  node.leftChild = node.rightChild;
  node.rightChild = tmp;
   
  // do the subtrees - RECURSSION
  if (node.leftChild</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/mirror-b-tree.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-3392483408525053735</guid><pubDate>Tue, 06 Oct 2015 18:45:00 +0000</pubDate><atom:updated>2015-10-06T11:45:11.350-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Chain Comparators</title><atom:summary type="text">
class StudentFirstNameComparator implements Comparator{&amp;nbsp;&amp;nbsp; &amp;nbsp;@Override&amp;nbsp;&amp;nbsp; &amp;nbsp;public int compare(Student o1, Student o2) {&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return o1.getFirstName().compareTo(o2.getFirstName());&amp;nbsp;&amp;nbsp; &amp;nbsp;}}
 
 


 
 


class StudentLastNameComparator implements Comparator{&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&amp;nbsp;&amp;nbsp;&amp;nbsp; public int compare(</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/chain-comparators.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-7516802261822369229</guid><pubDate>Mon, 05 Oct 2015 17:41:00 +0000</pubDate><atom:updated>2015-10-06T11:42:08.933-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>ConcurrentHashMap implementation</title><atom:summary type="text">

As suggested earlier, the data structure used by&amp;nbsp;ConcurrentHashMap&amp;nbsp;is similar in implementation to that of&amp;nbsp;Hashtable&amp;nbsp;or&amp;nbsp;HashMap, with a resizable array of hash buckets, each consisting of a chain of&amp;nbsp;Map.Entry&amp;nbsp;elements, as shown in Listing 1. Instead of a single collection lock,&amp;nbsp;ConcurrentHashMap&amp;nbsp;uses a fixed pool of locks that form a partition over </atom:summary><link>http://atoz-tech.blogspot.com/2015/10/concurrenthashmap-implementation.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-2585574977911844730</guid><pubDate>Sun, 04 Oct 2015 15:13:00 +0000</pubDate><atom:updated>2015-10-04T08:13:02.532-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>ExecutorService vs ExecutorCompletionService</title><atom:summary type="text">

Suppose we have list of four tasks: Task A, Task B, Task C and Task D which perform some complex computation and result into an integer value. These tasks may take random time depending upon various parameters. We can submit these tasks to executor as:
ExecutorService executorService = Executors.newFixedThreadPool(4);
List futures = new ArrayList&amp;gt;();
futures.add(executorService.submit(A));
</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/executorservice-vs-executorcompletionse.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-6181453930780653099</guid><pubDate>Sun, 04 Oct 2015 15:12:00 +0000</pubDate><atom:updated>2015-10-04T08:12:29.544-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Interface Method Declarations</title><atom:summary type="text">
public interface MyInterface {
 
 // In interface method can only be PUBLIC or DEFUALT
 public void methpublic();
 void methDefualt();
 
 // In interface method CAN NOT BE private Static Protected
 //private void methprivate();
 //static void methstatic();
 //protected void methprotected();
}



</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/interface-method-declarations.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-2204702428799447048</guid><pubDate>Sun, 04 Oct 2015 15:09:00 +0000</pubDate><atom:updated>2015-10-04T08:09:36.549-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>MergeSort - Collections.sort() uses Tim Sort</title><atom:summary type="text">





 
 


</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/mergesort-collectionssort-uses-tim-sort.html</link><author>noreply@blogger.com (AC)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq_-dYA6JW8V0YMwq32A3m0K1Oe7jjeoi06PaYdNpXLqqVrGf-VNlatG8ZyeC5MQjEPmXlO5s3OxHvv8QwhJ1SvDvLxiZTDcgcVet8TRQGMBVmIlqX1xb7jXamT08nZjzGOig4pVYoGvN1/s72-c/Screen+Shot+2015-10-04+at+8.37.16+pm.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-8851284643194613939</guid><pubDate>Sun, 04 Oct 2015 05:55:00 +0000</pubDate><atom:updated>2015-10-03T22:55:40.124-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Why ConcurrentHashMap does NOT allow NULL keys and values?</title><atom:summary type="text">
The main reason that nulls aren't allowed in ConcurrentMaps
  (ConcurrentHashMaps, ConcurrentSkipListMaps) is that ambiguities that
  may be just barely tolerable in non-concurrent maps can't be
  accommodated. The main one is that if map.get(key) returns null, you
  can't detect whether the key explicitly maps to null vs the key isn't
  mapped. In a non-concurrent map, you can check this via
  </atom:summary><link>http://atoz-tech.blogspot.com/2015/10/why-concurrenthashmap-does-not-allow.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-1253109759701978920</guid><pubDate>Sun, 04 Oct 2015 03:47:00 +0000</pubDate><atom:updated>2015-10-03T20:47:58.894-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Singleton</title><atom:summary type="text">

Lazy initialization
public class SingletonDemo {
    private static volatile SingletonDemo instance;
    private SingletonDemo() { }

    public static SingletonDemo getInstance() {
        if (instance == null ) {
            synchronized (SingletonDemo.class) {
                if (instance == null) {
                    instance = new SingletonDemo();
                }
            }
        }</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/singleton.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-5973415227218177703</guid><pubDate>Sat, 03 Oct 2015 15:19:00 +0000</pubDate><atom:updated>2015-10-03T09:01:47.685-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Handling Exceptions in Thread - Thread.UncaughtExceptionHandler</title><atom:summary type="text">
A task queued with execute() that generates some Throwable will cause the UncaughtExceptionHandler for the Thread running the task to be invoked. The default UncaughtExceptionHandler, which typically prints the Throwable stack trace to System.err, will be invoked if no custom handler has been installed.

On the other hand, a Throwable generated by a task queued with submit() will bind the </atom:summary><link>http://atoz-tech.blogspot.com/2015/10/handling-exceptions-in-thread.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-7685683805554347622</guid><pubDate>Fri, 02 Oct 2015 07:50:00 +0000</pubDate><atom:updated>2015-10-02T00:50:16.084-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Remove Duplicate in ArrayList using Comparator in TreeSet</title><atom:summary type="text">

public class StudentRemoveDuplicates {&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List list1 = new ArrayList();&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; list1.add(new Student("Amit", "100"));&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; list1.add(new Student("Anindita", "101"));&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; list1.add(new Student("Abcd", "102"));&amp;</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/remove-duplicate-in-arraylist-using.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-7989849158096854598</guid><pubDate>Fri, 02 Oct 2015 07:05:00 +0000</pubDate><atom:updated>2015-10-02T00:05:02.598-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>2 ArrayList - Remove duplicates without using Set</title><atom:summary type="text">

First remove duplicates:


      arrayList1.removeAll(arrayList2);
Then merge two arrayList:


      arrayList1.addAll(arrayList2);
Lastly, sort your arrayList if you wish:


       collections.sort(arrayList1);
&amp;nbsp;

import java.util.ArrayList;import java.util.Collections;import java.util.List;public class ArrayListDuplicates {&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) {&amp;nbsp;</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/2-arraylist-remove-duplicates-without.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-1069616930246265902</guid><pubDate>Fri, 02 Oct 2015 04:47:00 +0000</pubDate><atom:updated>2015-10-01T21:47:06.375-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>All Threads and its current status</title><atom:summary type="text">
Set&amp;lt;Thread&amp;gt; threadSet = Thread.getAllStackTraces().keySet();

for (Thread thread: threadSet) {
 System.out.println(thread.getId());
}
&amp;nbsp;
Make sure you read and understand the method Thread.getAllStackTraces() before using them.
 
 


</atom:summary><link>http://atoz-tech.blogspot.com/2015/10/all-threads-and-its-current-status.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-1251851403289136298</guid><pubDate>Sat, 26 Sep 2015 12:03:00 +0000</pubDate><atom:updated>2015-09-26T05:03:53.806-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>How does website handle million users</title><atom:summary type="text">

Load Balancer
It is needed if you have so many requests 
which can not be handled by one web server. Typically 10-15k requests 
per second can be handled by one web server for a dynamic website, but 
it depends totally on complexity of website/web application. Load 
balancer contains multiple web servers and just forwards incoming 
requests to one of them to distribute.

Separate cdn server
To </atom:summary><link>http://atoz-tech.blogspot.com/2015/09/how-does-website-handle-million-users.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-4651258117876628465</guid><pubDate>Sat, 29 Aug 2015 16:44:00 +0000</pubDate><atom:updated>2015-08-29T09:46:44.753-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Internal implementation of LinkedHashSet</title><atom:summary type="text">


public class LinkedHashSetExample

{&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Creating LinkedHashSet

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LinkedHashSet set = new LinkedHashSet();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Adding elements to LinkedHashSet

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/internal-implementation-of-linkedhashset.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-2364025987215863977</guid><pubDate>Sat, 29 Aug 2015 14:16:00 +0000</pubDate><atom:updated>2015-08-29T07:16:13.346-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Order of in Java - O(n) O(1) O(log n)</title><atom:summary type="text">




Below is a&amp;nbsp;list of the Big O complexities in order of how well they scale relative to the dataset.

O(1)/Constant Complexity:&amp;nbsp;Constant. &amp;nbsp;This means irrelevant of the size of the data set the algorithm will always take a constant time.&amp;nbsp;1 item takes 1 second, 10 items takes 1 second, 100 items takes 1 second.&amp;nbsp;It always takes the same amount of time.

O(log n)/</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/order-of-in-java-on-o1-olog-n.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-8173324813552861633</guid><pubDate>Sat, 29 Aug 2015 08:26:00 +0000</pubDate><atom:updated>2015-08-29T01:28:55.193-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>Print Multi Dimention Array [MxN] in Spiral Form</title><atom:summary type="text">
Have four indexes: top, down, left and right which are 
gonna be used to point where we are gonna start printing rows and 
columns.

When&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp; top &amp;gt; down OR left &amp;gt; right then we are DONE!!!!!


public class MultiDimSpiralPrint {&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int[][] i = { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/print-multi-dimention-array-mxn-in.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-7969754753889614</guid><pubDate>Sat, 29 Aug 2015 07:07:00 +0000</pubDate><atom:updated>2015-08-29T00:07:11.836-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><category domain="http://www.blogger.com/atom/ns#">Java Concurrency</category><title>Java Thread - print Odd Even Numbers</title><atom:summary type="text">
This is possible by :&amp;nbsp; EvenOddPrint [synchronization + wait () + notifyAll () ]+ 2 Threads (odd/even) + Task [ impl runnable having run() deciding when to call what method of EvenOddPrint ]

Task#1 -&amp;gt; Write a EvenOddPrint Class&amp;nbsp;
- flag to decide when to wait else notify and print
-sync printEven() and printOdd() using wait notifyAll


&amp;nbsp;public class EvenOddPrint {&amp;nbsp;&amp;nbsp;&amp;</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/java-thread-print-odd-even-numbers.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-8402239374654899796</guid><pubDate>Mon, 24 Aug 2015 04:23:00 +0000</pubDate><atom:updated>2015-08-23T21:28:33.265-07:00</atom:updated><title>Apache CompareToBuilder - Sort Employees with Age + JobTitle + Salary</title><atom:summary type="text">




public class Employee {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;private String name;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;private String jobTitle;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;private int age;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;private int salary;



&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;public Employee(String name, String jobTitle, int age, int salary) {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.name = name;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/apache-comparetobuilder-sort-employees.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-4510992817256919653</guid><pubDate>Sun, 23 Aug 2015 08:38:00 +0000</pubDate><atom:updated>2015-08-23T01:38:01.110-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><title>JVM parameters in Java</title><atom:summary type="text">






 
 


</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/jvm-parameters-in-java.html</link><author>noreply@blogger.com (AC)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiayDvfI5z8xkuUIpcCeZeeA7t6NRdqWV9-MFPp2haEGMhgPeW07QtWJNe2newQ8OMu7bTbAQJXRF9uWP3ND3uWQpt0DKY-AE4mDAWD44dL6K4pTfnIi1AFgCrPaFRiZe-rrOSKXIGpTF0/s72-c/Hotspot2_JVM_Parameters_GC_Heap.png" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-1509384548350446706</guid><pubDate>Sun, 23 Aug 2015 08:32:00 +0000</pubDate><atom:updated>2015-08-23T01:43:44.689-07:00</atom:updated><title>Java Memory Modal</title><atom:summary type="text">

&amp;nbsp;






 
 


</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/java-memory-modal.html</link><author>noreply@blogger.com (AC)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNoFtHXf-4YG43xZck_PVJ4H_fIpJsruSiP4Z1uZNEJDLT0qLI6O5XDKjJ7sx7vKK1ltmR1jP2b94HZgmEwqZbvwx9aEiU6QCv95Tr42V2Kl_xcNyuopFDecMypi8xbY4898b-7i5RQTZ3/s72-c/slide2.jpg" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-7732491294285694988</guid><pubDate>Sat, 22 Aug 2015 14:48:00 +0000</pubDate><atom:updated>2015-08-22T07:48:18.633-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Interview Questions</category><category domain="http://www.blogger.com/atom/ns#">Java Concurrency</category><title>Producer Consumer using Custom BlockingQueue</title><atom:summary type="text">
public class MyBlockingQueue { //Instead use internal BlockingQueue of concurrent package&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; private Object lock = new Object();&amp;nbsp;&amp;nbsp;&amp;nbsp; private List queue = new LinkedList();&amp;nbsp;&amp;nbsp;&amp;nbsp; private int limit = 10;&amp;nbsp;&amp;nbsp;&amp;nbsp; public MyBlockingQueue(int limit) {&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.limit = limit;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/producer-consumer-using-custom.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8175021190731585116.post-5021285113160728237</guid><pubDate>Sat, 08 Aug 2015 05:54:00 +0000</pubDate><atom:updated>2015-08-07T22:54:24.488-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">MAC</category><title>Turn off the Voice Over for my Mac?</title><atom:summary type="text">
Command&amp;nbsp;+ F5
will turn it off Completely 
 
 


</atom:summary><link>http://atoz-tech.blogspot.com/2015/08/turn-off-voice-over-for-my-mac.html</link><author>noreply@blogger.com (AC)</author><thr:total>0</thr:total></item></channel></rss>