<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Craterzone Interview Questions and Answers - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/craterzone-interview-questions-and-answers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/craterzone-interview-questions-and-answers/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Mon, 02 May 2022 06:18:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>Craterzone Interview Questions and Answers - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/craterzone-interview-questions-and-answers/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is space complexity of the program ?</title>
		<link>https://www.wikitechy.com/interview-questions/programming/what-is-space-complexity-of-the-program/</link>
					<comments>https://www.wikitechy.com/interview-questions/programming/what-is-space-complexity-of-the-program/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Fri, 27 Aug 2021 00:53:28 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Cognizant Interview Questions]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[difference between time and space complexity]]></category>
		<category><![CDATA[how to calculate space complexity]]></category>
		<category><![CDATA[Most Asked Sapient Nitro Interview Questions]]></category>
		<category><![CDATA[sapient nitro interview questions and answers]]></category>
		<category><![CDATA[Sapient Nitro Placement Questions and Answers]]></category>
		<category><![CDATA[space complexity]]></category>
		<category><![CDATA[space complexity examples]]></category>
		<category><![CDATA[space complexity in data structure]]></category>
		<category><![CDATA[space complexity notation]]></category>
		<category><![CDATA[space complexity of an algorithm]]></category>
		<category><![CDATA[space complexity of sorting algorithms]]></category>
		<category><![CDATA[Time and Space Complexity]]></category>
		<category><![CDATA[time and space complexity of algorithms]]></category>
		<category><![CDATA[Time and Space Complexity Tutorials]]></category>
		<category><![CDATA[time complexity and space complexity]]></category>
		<category><![CDATA[time space complexity]]></category>
		<category><![CDATA[What does 'Space Complexity' mean]]></category>
		<category><![CDATA[What is O 1 space complexity]]></category>
		<category><![CDATA[What is space and time complexity]]></category>
		<category><![CDATA[What is Space Complexity]]></category>
		<category><![CDATA[what is Space Complexity and Why measuring it]]></category>
		<category><![CDATA[What is space complexity in data structure]]></category>
		<category><![CDATA[What is time complexity C]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=2592</guid>

					<description><![CDATA[Answer : C. Amount of memory required by the program to run]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<p class="color-pink">What is space complexity of the program ?</p>
<div class="row">
<div class="col-sm-12">
<p>A. Amount of hard disk space required to store the program</p>
</div>
<div class="col-sm-12">
<p>B. Amount of hard disk space required to compile the program</p>
</div>
<div class="col-sm-12">
<p>C. Amount of memory required by the program to run</p>
</div>
<div class="col-sm-12">
<p>D. Amount of memory required by the program to compile</p>
</div>
</div>
</div>
</div>
<h3 id="answer-c-amount-of-memory-required-by-the-program-to-run"><b>Answer : </b>C. Amount of memory required by the program to run</h3>
<div class="subheading">
<h2 id="explanation">Explanation :</h2>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li>Space complexity is a measure of how efficient your code is in terms of memory used.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/programming/what-is-space-complexity-of-the-program/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Memory Management in OS ?</title>
		<link>https://www.wikitechy.com/interview-questions/operating-system/what-is-memory-management-in-os/</link>
					<comments>https://www.wikitechy.com/interview-questions/operating-system/what-is-memory-management-in-os/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 20 Jul 2021 08:55:58 +0000</pubDate>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Allstate Solutions Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[AVEVA Software interview questions and answers]]></category>
		<category><![CDATA[BMC Software interview questions and answers]]></category>
		<category><![CDATA[cache memory]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[contiguous memory allocation in operating system]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[direct memory access]]></category>
		<category><![CDATA[dynamic memory]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[functions of memory management]]></category>
		<category><![CDATA[functions of memory managements]]></category>
		<category><![CDATA[Genpact interview questions and answers]]></category>
		<category><![CDATA[HCL Technologies interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[memory allocation]]></category>
		<category><![CDATA[memory management]]></category>
		<category><![CDATA[memory management in operating system]]></category>
		<category><![CDATA[memory management in operating system notes]]></category>
		<category><![CDATA[memory management techniques]]></category>
		<category><![CDATA[memory management techniques in computer architecture]]></category>
		<category><![CDATA[memory management techniques in data structure]]></category>
		<category><![CDATA[memory_management]]></category>
		<category><![CDATA[memorytypes of memory]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Opentext Technologies interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[Prokarma Sof interview questions and answers]]></category>
		<category><![CDATA[RBS India Development Centre Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[shared memory]]></category>
		<category><![CDATA[system memory]]></category>
		<category><![CDATA[Tata Consultancy Service interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[types of memory]]></category>
		<category><![CDATA[types of memory management]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[virtual memory]]></category>
		<category><![CDATA[virtual memory in os]]></category>
		<category><![CDATA[virtual memory management in operating system]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[wapping in memory management]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is memory management]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=1119</guid>

					<description><![CDATA[Answer : Memory management is the process of controlling and coordinating computer memory...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-memory-management-in-os" class="color-pink" style="text-align: justify;">What is Memory Management in OS ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Memory management is the process of controlling and coordinating computer memory, assigning portions called blocks to various running programs to optimize overall system performance.</li>
<li>Memory management resides in hardware, in the OS (operating system), and in applications.</li>
<li>In hardware, memory management involves components that physically store data, such as RAM chips, memory caches,etc.,.</li>
<li>In the OS, memory management involves the allocation (and constant reallocation) of specific memory blocks to individual programs as user demands change.</li>
<li>At the application level, memory management ensures the availability of adequate memory for the objects and data structures of each running program at all times.Application memory management combines two related tasks, known as allocation and recycling.
<ul>
<li><b>Allocation :</b> When the program requests a block of memory, a part of the memory manager called the allocator assigns that block to the program.</li>
<li><b>Recycling :</b> When a program no longer needs the data in previously allocated memory blocks, those blocks become available for reassignment. This task can be done manually (by the programmer) or automatically (by the memory manager).</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/operating-system/what-is-memory-management-in-os.png" alt="What is Memory Management in OS " /></div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="fragmentation" class="color-green">Fragmentation</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>As processes are loaded and removed from memory, the free memory space has broken into small pieces.</li>
<li>That processes cannot be allocated to memory blocks considering their small size and memory blocks remains unused.</li>
<li>This problem is known as Fragmentation.There are two types of fragmentation,
<ul>
<li>Internal fragmentation</li>
<li>External fragmentation</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/operating-system/internal-and-external-fragmentation-in-os.png" alt="internal and external fragmentation in os" width="50%" /></div>
</div>
<p style="text-align: justify;" align="center">Internal and External fragmentation in os</p>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="internal-fragmentation" class="color-blue">Internal fragmentation</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>Memory block assigned to process is lager. Memory is left unused in some portion as it cannot be used by another process.</li>
</ul>
</div>
</div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="external-fragmentation" class="color-blue">External fragmentation</h2>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul>
<li style="text-align: justify;">Total memory space is enough to satisfy a request or to reside a process in it, but it is not contiguous, so it cannot be used.</li>
</ul>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/operating-system/what-is-memory-management-in-os/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>What is Linear Sort in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/what-is-linear-sort-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/what-is-linear-sort-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:33:59 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[linear algorithm example]]></category>
		<category><![CDATA[linear insertion sort]]></category>
		<category><![CDATA[linear search algorithm]]></category>
		<category><![CDATA[linear search algorithm in data structure]]></category>
		<category><![CDATA[linear search algorithm java]]></category>
		<category><![CDATA[linear search in c]]></category>
		<category><![CDATA[linear sort]]></category>
		<category><![CDATA[linear sort in c]]></category>
		<category><![CDATA[linear sort in java]]></category>
		<category><![CDATA[linear sorting algorithm]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=646</guid>

					<description><![CDATA[Answer : One of the simplest Sorting techniques is a linear sort...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="what-is-linear-sort-in-java" class="color-pink" style="text-align: justify;">What is Linear Sort in Java ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>One of the simplest Sorting techniques is a linear sort.</li>
<li>Linear sort is the selection of an element and keeping it in sorted order.</li>
<li>In linear sort, the strategy is to find the smallest number in the array and exchange it with the value in first position of array.</li>
<li>Now, find the second smallest element in the remainder of array and exchange it with a value in the second position, carry on till you have reached the end of array.</li>
<li>Now all the elements have been sorted in ascending order.</li>
</ul>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn"></div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block" src="https://cdn.wikitechy.com/interview-questions/java/what-is-linear-sorting.png" alt=" Linear Sorting" /></div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="sample-code" class="color-blue" style="text-align: justify;">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">// Java program for implementation of Selection Sort <br/>class SelectionSort <br/>{ <br/>    void sort(int arr[]) <br/>    { <br/>        int n = arr.length; <br/>  <br/>        // One by one move boundary of unsorted subarray <br/>        for (int i = 0; i &lt; n-1; i++) <br/>        { <br/>            // Find the minimum element in unsorted array <br/>            int min_idx = i; <br/>            for (int j = i+1; j &lt; n; j++) <br/>                if (arr[j] &lt; arr[min_idx]) <br/>                    min_idx = j; <br/>  <br/>            // Swap the found minimum element with the first <br/>            // element <br/>            int temp = arr[min_idx]; <br/>            arr[min_idx] = arr[i]; <br/>            arr[i] = temp; <br/>        } <br/>    } <br/>  <br/>    // Prints the array <br/>    void printArray(int arr[]) <br/>    { <br/>        int n = arr.length; <br/>        for (int i=0; i&lt;n; ++i) <br/>            System.out.print(arr[i]+&quot; &quot;); <br/>        System.out.println(); <br/>    } <br/>  <br/>    // Driver code to test above <br/>    public static void main(String args[]) <br/>    { <br/>        SelectionSort ob = new SelectionSort(); <br/>        int arr[] = {27,28,45,68,32}; <br/>        ob.sort(arr); <br/>        System.out.println(&quot;Sorted array&quot;); <br/>        ob.printArray(arr); <br/>    } <br/>} </code></pre> </div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs" data-lang=""><span class="nt">Sorted array:
27 28 32 45 68 </span></code></pre>
</figure>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/what-is-linear-sort-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Decode URL content in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/how-to-decode-url-content-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/how-to-decode-url-content-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:33:53 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[encode string in java]]></category>
		<category><![CDATA[encoding and decoding in java example]]></category>
		<category><![CDATA[encoding and decoding program in java]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[java decode string]]></category>
		<category><![CDATA[java encode url path]]></category>
		<category><![CDATA[java program to encode and decode a string]]></category>
		<category><![CDATA[java uri encode]]></category>
		<category><![CDATA[java url decode]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[url decode]]></category>
		<category><![CDATA[url encode]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=645</guid>

					<description><![CDATA[Answer : The task to the reverse of URL encoding and distinct from URL parser is called Url Decoding..]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="how-to-decode-url-content-in-java" class="color-pink" style="text-align: justify;">How to Decode URL content in Java ?</h2>
<ul style="text-align: justify;">
<li>The task to the reverse of URL encoding and distinct from URL parser is called Url Decoding.</li>
<li>It is a common requirement to implement URL encoding and decoding in Java while creating crawlers or downloaders.</li>
</ul>
</div>
</div>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/java/decode-url.jpg" alt=" Decode URL" /></div>
</div>
<p style="text-align: justify;" align="center">Decode URL</p>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<p>The Decode URL following steps are given below,</p>
</div>
</div>
<div class="Content">
<div class="hddn">
<ul style="text-align: justify;">
<li>The same URL can be encoded multiple times, we need to decode it until the URL cannnot be decoded further. For example, &#8220;video%252Fmp4&#8221; is the result of two encodings. Upon decoding it once, we get &#8220;video%2Fmp4&#8221;. Now the URL needs to be further decoded so that we get &#8220;video/mp4&#8221;, which is the result.</li>
<li>We use the decode method of a predefined Java class named URLDecoder.</li>
<li>The decode method of URLDecoder takes two arguments:
<ul>
<li>The first argument defines the URL to be decoded.</li>
<li>The second argument defines the decoding scheme to be used.</li>
</ul>
</li>
<li>After decoding, the resulting decoded URL is returned.</li>
<li>We create two variables: prevURL, which is empty, and decodeURL, which contains the URL to be decoded.</li>
<li>We create an iteration that runs until prevURL!=decodeURL</li>
<li>Now we update prevURL to decodeURL and update decodeURL with the decoded value of the URL passed.</li>
<li>As you can see, prevURL!=decodeURL, so we run it again and again.</li>
<li>Now, prevURL=decodeURL, so the decoded URL is returned.</li>
</ul>
<h2 id="sample-code" class="color-purple" style="text-align: justify;">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">import java.io.UnsupportedEncodingException;<br/>import java.net.URLDecoder;<br/> <br/>public class DecodeURLExample {<br/>    public static void main(String a[]){<br/>        try {<br/>            System.out.println(URLDecoder.decode(&quot;special+chars%3A+%26%25*+&quot;, &quot;UTF-8&quot;));<br/>        } catch (UnsupportedEncodingException ex) {<br/>            ex.printStackTrace();<br/>        }<br/>    }<br/>}</code></pre> </div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs" data-lang=""><span class="nt">special chars: &amp;%* </span></code></pre>
</figure>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/how-to-decode-url-content-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Difference Between static and dynamic binding in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/difference-between-static-and-dynamic-binding-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/difference-between-static-and-dynamic-binding-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:33:43 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[data binding in java]]></category>
		<category><![CDATA[definition of dynamic binding in java]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[difference between static and dynamic variable]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[late binding]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[static and dynamic examples]]></category>
		<category><![CDATA[static and dynamic objects]]></category>
		<category><![CDATA[static binding and dynamic binding in oops]]></category>
		<category><![CDATA[static binding definition]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is binding in oops]]></category>
		<category><![CDATA[what is dynamic binding]]></category>
		<category><![CDATA[what is static and dynamic binding in java]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=644</guid>

					<description><![CDATA[Answer : Events occur at compile time....]]></description>
										<content:encoded><![CDATA[<h2 id="difference-between-static-and-dynamic-binding-in-java" class="color-pink">Difference Between static and dynamic binding in Java</h2>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4221" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding.png" alt="" width="922" height="668" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding.png 922w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-300x217.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-768x556.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-390x283.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2021/07/static-and-dynamic-binding-820x594.png 820w" sizes="(max-width: 922px) 100vw, 922px" /></p>
<table class="table-bordered table-striped table table-responsive">
<tbody>
<tr>
<th><a href="https://www.wikitechy.com/interview-questions/java/what-is-static-and-dynamic-binding-in-java/" target="_blank" rel="noopener">Static Binding</a></th>
<th><a href="https://www.wikitechy.com/interview-questions/java/what-is-static-and-dynamic-binding-in-java/" target="_blank" rel="noopener">Dynamic Binding</a></th>
</tr>
<tr>
<td class="text-leftalign">Events occur at compile time</td>
<td class="text-leftalign">Events occur at run time.</td>
</tr>
<tr>
<td class="text-leftalign">All information needed to call a function is known<br />
at the compile time.<br />
Static binding uses Type(Class in Java)<br />
information for binding</td>
<td class="text-leftalign">All information need to call a function come to know at the run time.<br />
Dynamic binding uses Object to resolve binding.</td>
</tr>
<tr>
<td class="text-leftalign">The advantage of static binding is Efficiency</td>
<td class="text-leftalign">The advantage of dynamic binding is Flexibility.</td>
</tr>
<tr>
<td class="text-leftalign">Fast Execution</td>
<td class="text-leftalign">Slow Execution.</td>
</tr>
<tr>
<td class="text-leftalign">Static binding is also called as Early Binding.</td>
<td class="text-leftalign">Static binding is called as Late Binding.</td>
</tr>
<tr>
<td class="text-leftalign">
<ul>
<li>Problem occurs,
<ul>
<li>Binding of a name</li>
<li>Activation of a procedure</li>
<li>Lifetime of a binding</li>
</ul>
</li>
</ul>
</td>
<td class="text-leftalign">
<ul>
<li>Problem occurs,
<ul>
<li>Declaration of a name(variable, etc.)</li>
<li>Scope of the declaration.</li>
</ul>
</li>
</ul>
</td>
</tr>
<tr>
<td class="text-leftalign">Overloaded function call, Overloaded operators.</td>
<td class="text-leftalign">Virtual function in C++, overridden methods in java.</td>
</tr>
</tbody>
</table>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/difference-between-static-and-dynamic-binding-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to find the Longest Palindrome String in Java ?</title>
		<link>https://www.wikitechy.com/interview-questions/java/how-to-find-the-longest-palindrome-string-in-java/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/how-to-find-the-longest-palindrome-string-in-java/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:33:34 +0000</pubDate>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Accenture interview questions and answers]]></category>
		<category><![CDATA[Applied Materials interview questions and answers]]></category>
		<category><![CDATA[Atos interview questions and answers]]></category>
		<category><![CDATA[Capgemini interview questions and answers]]></category>
		<category><![CDATA[CASTING NETWORKS INDIA PVT LIMITED interview questions and answers]]></category>
		<category><![CDATA[CGI Group Inc interview questions and answers]]></category>
		<category><![CDATA[Chetu interview questions and answers]]></category>
		<category><![CDATA[Ciena Corporation interview questions and answers]]></category>
		<category><![CDATA[Collabera Technologies interview questions and answers]]></category>
		<category><![CDATA[Craterzone Interview Questions and Answers]]></category>
		<category><![CDATA[define palindrome]]></category>
		<category><![CDATA[Dell International Services India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[find longest palindrome in a string dynamic programming]]></category>
		<category><![CDATA[FIS Global Business Solutions India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Flipkart interview questions and answers]]></category>
		<category><![CDATA[IBM interview questions and answers]]></category>
		<category><![CDATA[Indecomm Global Services interview questions and answers]]></category>
		<category><![CDATA[Infosys Technologies interview questions and answers]]></category>
		<category><![CDATA[L&T Infotech interview questions and answers]]></category>
		<category><![CDATA[longest palindromic substring java]]></category>
		<category><![CDATA[longest palindromic substring o(n)]]></category>
		<category><![CDATA[longest palindromic substring recursion]]></category>
		<category><![CDATA[Mphasis interview questions and answers]]></category>
		<category><![CDATA[NetApp interview questions and answers]]></category>
		<category><![CDATA[Oracle Corporation interview questions and answers]]></category>
		<category><![CDATA[palindrome string program in java]]></category>
		<category><![CDATA[PeopleStrong interview questions and answers]]></category>
		<category><![CDATA[Persistent Systems interview questions and answers]]></category>
		<category><![CDATA[print longest palindromic subsequence]]></category>
		<category><![CDATA[RBS India De interview questions and answers]]></category>
		<category><![CDATA[Reliance Industries Ltd interview questions and answers]]></category>
		<category><![CDATA[SAP Labs India Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[string palindrome in java]]></category>
		<category><![CDATA[Tech Mahindra interview questions and answers]]></category>
		<category><![CDATA[UnitedHealth Group interview questions and answers]]></category>
		<category><![CDATA[Virtusa Consulting Services Pvt Ltd interview questions and answers]]></category>
		<category><![CDATA[Wells Fargo interview questions and answers]]></category>
		<category><![CDATA[what is a palindrome]]></category>
		<category><![CDATA[what's a palindrome]]></category>
		<category><![CDATA[Wipro Infotech interview questions and answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=643</guid>

					<description><![CDATA[Answer : A palindrome is a word, phrase, number, or other sequence of characters...
]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="how-to-find-the-longest-palindrome-string-in-java" class="color-pink" style="text-align: justify;">How to find the Longest Palindrome String in Java ?</h2>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward as forward, example as madam.</li>
<li>Write a java program to find the longest palindrome present in a given string.</li>
</ul>
</div>
</div>
<div class="ImageContent" style="text-align: justify;">
<div class="hddn"><img decoding="async" class="img-responsive center-block aligncenter" src="https://cdn.wikitechy.com/interview-questions/java/longest-palindrome-%20in-a-string.png" alt=" Longest Palindrome in a String" /></div>
</div>
<p style="text-align: justify;" align="center">Longest Palindrome in a String Using Java</p>
<div class="text-center row" style="text-align: justify;">
<div class="col-sm-12">
<div id="bsa-zone_1590522538159-8_123456"></div>
</div>
</div>
<div class="Content" style="text-align: justify;">
<div class="hddn">
<ul>
<li>The string can be of odd or even length and hence the findLongestPalindromeWithSpecifiedParameter() is called twice for each string.</li>
<li>In the method, findLongestPalindromeWithSpecifiedParameter() left will decrement and move towards the start of the string until it reaches start and then right will increment and move towards the end of the string until it reaches the end.</li>
<li>And any left and right reach destination (i.e. start and end respectively)at any point then the method will return.</li>
</ul>
</div>
</div>
<div class="TextHeading">
<div class="hddn">
<h2 id="sample-code" class="color-blue" style="text-align: justify;">Sample Code</h2>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-java code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-java code-embed-code">import java.io.*;<br/><br/><br/>public class LongestPalindromeExample {<br/><br/>    public String findTheLongestPalindrome(String str){<br/>        if (str == null) {<br/>            return null;<br/>        }<br/>        String longestPalindrome = String.valueOf(str.charAt(0));<br/>        for (int i = 0; i &lt; str.length() - 1; i++) {<br/>            String returnedPalindrome = findLongestPalindromeWithSpecifiedParameter(str, i, i);<br/>            if (returnedPalindrome.length() &gt; longestPalindrome.length()) {<br/>                longestPalindrome = returnedPalindrome;<br/>            }<br/>            returnedPalindrome = findLongestPalindromeWithSpecifiedParameter(str, i, i + 1);<br/>            if (returnedPalindrome.length() &gt; longestPalindrome.length()) {<br/>                longestPalindrome = returnedPalindrome;<br/>            }<br/>        }<br/>        return longestPalindrome;<br/>    }<br/><br/>    public String findLongestPalindromeWithSpecifiedParameter(String str, int left, int right) {<br/>        if (left &gt; right)<br/>            return null;<br/><br/>        while (left &gt;= 0 &amp;&amp; right &lt; str.length() &amp;&amp; str.charAt(left) == str.charAt(right)) {<br/>            left--;<br/>            right++;<br/>        }<br/>        return str.substring(left + 1, right);<br/>    }<br/><br/>    public static void main(String[] args){<br/>        LongestPalindromeExample longestPalindrome1 = new LongestPalindromeExample();<br/>        System.out.println(&quot;Longest palindrome in abcmadamcbamadam is &quot; + longestPalindrome1.findTheLongestPalindrome(&quot;abcmadamcbamadam&quot;));<br/>        System.out.println(&quot;Longest palindrome in abcba is &quot; + longestPalindrome1.findTheLongestPalindrome(&quot;abcba&quot;));<br/>    }<br/>}</code></pre> </div>
<div class="TextHeading" style="text-align: justify;">
<div class="hddn">
<h2 id="output" class="color-blue">Output</h2>
</div>
</div>
<div class="Output">
<div class="hddn">
<figure class="highlight" style="text-align: justify;">
<pre><code class="hljs bash" data-lang=""><span class="nt">Longest palindrome <span class="hljs-keyword">in</span> abcmadamcbamadam is abcmadamcba
Longest palindrome <span class="hljs-keyword">in</span> abcba is abcba</span></code></pre>
</figure>
</div>
</div>
</div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/how-to-find-the-longest-palindrome-string-in-java/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
