<?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>can we print a message without using system out println () or system out print () methods - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/can-we-print-a-message-without-using-system-out-println-or-system-out-print-methods/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/can-we-print-a-message-without-using-system-out-println-or-system-out-print-methods/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Sat, 11 Sep 2021 11:44:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>can we print a message without using system out println () or system out print () methods - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/can-we-print-a-message-without-using-system-out-println-or-system-out-print-methods/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to print a message to console without using main() function ? (do not use even static blocks also)</title>
		<link>https://www.wikitechy.com/interview-questions/java/how-to-print-a-message-to-console-without-using-main-function-do-not-use-even-static-blocks-also/</link>
					<comments>https://www.wikitechy.com/interview-questions/java/how-to-print-a-message-to-console-without-using-main-function-do-not-use-even-static-blocks-also/#respond</comments>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 23:06:37 +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[can we print a message without using system out println () or system out print () methods]]></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[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[how print a print a value in jsp without using out print]]></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 example program to print message without using System.out]]></category>
		<category><![CDATA[Java Program to Print any Statement Without Using the Main Method]]></category>
		<category><![CDATA[java use println without system out]]></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[print hello world without using semicolon in java]]></category>
		<category><![CDATA[print msg in java]]></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>
		<category><![CDATA[write a program to display any message in java]]></category>
		<category><![CDATA[Zoho Interview Questions and Answers]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=622</guid>

					<description><![CDATA[Answer : You could define a custom class loader...]]></description>
										<content:encoded><![CDATA[<div class="TextHeading">
<div class="hddn">
<h2 id="how-to-print-a-message-to-console-without-using-main-function-do-not-use-even-static-blocks-also" class="color-pink">How to print a message to console without using main() function ? (do not use even static blocks also)</h2>
</div>
</div>
<p>You could define a custom class loader that prints your message :</p>
<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">public class MyClassLoader extends ClassLoader {<br/>    public MyClassLoader(ClassLoader other) {<br/>         super(other);<br/>         System.out.println(&quot;Hi there&quot;);<br/>         System.exit(0);<br/>    }<br/>}</code></pre> </div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/java/how-to-print-a-message-to-console-without-using-main-function-do-not-use-even-static-blocks-also/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
