Waiting for ur quick response

Waiting for ur quick response

Hi,

I have two different java programs like sun and moon. In both of these two programs i have used same class name like A. For example,

File name:sun.java
Then the code is here:
Class A
{
public static void main(String args[])
{
System.out.println("Hai");
}
}

Then i have to compile it:

javac sun.java
It compiles successfully then i have to run it
java A
The output is: Hai
This part is completed. Now i ll go to the next program

File name:moon.java
Then the code is here:
Class A
{
public static void main(String args[])
{
System.out.println("Hello");
}
}

Then i have to compile it:

javac moon.java
It compiles successfully then i have to run it
java A
Now the output is: Hello

Now i want to get the result as "Hai", so i run the file named as sun.java.
But this time again i got the result as "Hello"
What is the reason for this type of happening? and what is the solution for this problem? and how will i get the output "Hai"? Please any one help me ASAP....

Thanks!!!

View Answers









Related Tutorials/Questions & Answers:
Waiting for ur quick response
Waiting for ur quick response  Hi, I have two different java programs like sun and moon. In both of these two programs i have used same class name like A. For example, File name:sun.java Then the code is here: Class
Hi and Thanks for ur response - Hibernate
Hi and Thanks for ur response  Hi, thanks for ur immediate response.Could anyone know abt the elements generated by generic DAO classes and pls let me know what is persistenceInstance with one good example. pls explain me
Advertisements
i need a quick response about array and string...
i need a quick response about array and string...  how can i make a dictionary type using array code in java where i will type the word then the meaning will appear..please help me..urgent
ModuleNotFoundError: No module named 'ur'
ModuleNotFoundError: No module named 'ur'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ur' How to remove the ModuleNotFoundError: No module named 'ur' error
ModuleNotFoundError: No module named 'waiting'
ModuleNotFoundError: No module named 'waiting'  Hi, My Python... 'waiting' How to remove the ModuleNotFoundError: No module named 'waiting... to install padas library. You can install waiting python with following command
s per ur answer
s per ur answer  i cannot understand please explain in detail 3)Create web.xml and classes folder inside the WEB_INF folder of web application folder.   Hello Friend, We were explaining you the directory structure
ModuleNotFoundError: No module named 'nester-ur'
ModuleNotFoundError: No module named 'nester-ur'  Hi, My Python... 'nester-ur' How to remove the ModuleNotFoundError: No module named 'nester-ur' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'ur-rtde'
ModuleNotFoundError: No module named 'ur-rtde'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ur-rtde' How to remove the ModuleNotFoundError: No module named 'ur-rtde
Reply to ur mail(Hibernate Error)
Reply to ur mail(Hibernate Error)  Hi! Im using Eclipse. Steps : 1. Downloaded the example code and library from rose india and extracted the content in a directory. 2. Downloaded file contains the Eclipse project. 3. Started
ModuleNotFoundError: No module named 'trytond-commission-waiting'
ModuleNotFoundError: No module named 'trytond-commission-waiting'  Hi...: No module named 'trytond-commission-waiting' How to remove the ModuleNotFoundError: No module named 'trytond-commission-waiting' error? Thanks
quick sort
quick sort  sir, i try to modify this one as u sugess me in previous... static void quick_srt(int array[],int low, int n){ int lo = low; int hi... = lo; lo = T; } quick_srt(array, low, lo); quick_srt(array
quick sort
quick sort  sir, i try to modify this one as u sugess me in previous... static void quick_srt(int array[],int low, int n){ int lo = low; int hi... = lo; lo = T; } quick_srt(array, low, lo); quick_srt(array
quick sort
quick sort  sir, i try to modify this one as u sugess me in previous... static void quick_srt(int array[],int low, int n){ int lo = low; int hi... = lo; lo = T; } quick_srt(array, low, lo); quick_srt(array
diplay response
diplay response   Sir, How show sum of two tex boxes data to third box   Answer (adsbygoogle = window.adsbygoogle || []).push
ModuleNotFoundError: No module named 'quick'
ModuleNotFoundError: No module named 'quick'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'quick' How to remove the ModuleNotFoundError: No module named 'quick'
ModuleNotFoundError: No module named 'openlabs_waiting_customer_shipment_report'
ModuleNotFoundError: No module named 'openlabs_waiting_customer_shipment_report...: ModuleNotFoundError: No module named 'openlabs_waiting_customer_shipment_report' How to remove the ModuleNotFoundError: No module named 'openlabs_waiting
ModuleNotFoundError: No module named 'fio_waiting_customer_shipment_report'
ModuleNotFoundError: No module named 'fio_waiting_customer_shipment_report...: ModuleNotFoundError: No module named 'fio_waiting_customer_shipment_report' How to remove the ModuleNotFoundError: No module named 'fio_waiting_customer_shipment
ModuleNotFoundError: No module named 'response'
ModuleNotFoundError: No module named 'response'  Hi, My Python... 'response' How to remove the ModuleNotFoundError: No module named 'response... to install padas library. You can install response python with following
ModuleNotFoundError: No module named 'response'
ModuleNotFoundError: No module named 'response'  Hi, My Python... 'response' How to remove the ModuleNotFoundError: No module named 'response... to install padas library. You can install response python with following
JSP Response Object
JSP Response Object  JSP response Object ?   The response object denotes the HTTP Response data. The result or the information of a request is denoted with this object. The response object handles the output
ModuleNotFoundError: No module named 'quick-clojure'
ModuleNotFoundError: No module named 'quick-clojure'  Hi, My... 'quick-clojure' How to remove the ModuleNotFoundError: No module named 'quick-clojure' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-cache'
ModuleNotFoundError: No module named 'quick-cache'  Hi, My Python... 'quick-cache' How to remove the ModuleNotFoundError: No module named 'quick-cache' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'quick-connect'
ModuleNotFoundError: No module named 'quick-connect'  Hi, My... 'quick-connect' How to remove the ModuleNotFoundError: No module named 'quick-connect' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-debug'
ModuleNotFoundError: No module named 'quick-debug'  Hi, My Python... 'quick-debug' How to remove the ModuleNotFoundError: No module named 'quick-debug' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'quick-email'
ModuleNotFoundError: No module named 'quick-email'  Hi, My Python... 'quick-email' How to remove the ModuleNotFoundError: No module named 'quick-email' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'quick-knn'
ModuleNotFoundError: No module named 'quick-knn'  Hi, My Python... 'quick-knn' How to remove the ModuleNotFoundError: No module named 'quick... have to install padas library. You can install quick-knn python with following
ModuleNotFoundError: No module named 'quick-plot'
ModuleNotFoundError: No module named 'quick-plot'  Hi, My Python... 'quick-plot' How to remove the ModuleNotFoundError: No module named 'quick-plot' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'quick-server'
ModuleNotFoundError: No module named 'quick-server'  Hi, My Python... 'quick-server' How to remove the ModuleNotFoundError: No module named 'quick-server' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'ss-quick'
ModuleNotFoundError: No module named 'ss-quick'  Hi, My Python...-quick' How to remove the ModuleNotFoundError: No module named 'ss-quick... to install padas library. You can install ss-quick python with following
ModuleNotFoundError: No module named 'quick-connect'
ModuleNotFoundError: No module named 'quick-connect'  Hi, My... 'quick-connect' How to remove the ModuleNotFoundError: No module named 'quick-connect' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-datasets'
ModuleNotFoundError: No module named 'quick-datasets'  Hi, My... named 'quick-datasets' How to remove the ModuleNotFoundError: No module named 'quick-datasets' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-debug'
ModuleNotFoundError: No module named 'quick-debug'  Hi, My Python... 'quick-debug' How to remove the ModuleNotFoundError: No module named 'quick-debug' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'quick-cd'
ModuleNotFoundError: No module named 'quick-cd'  Hi, My Python... 'quick-cd' How to remove the ModuleNotFoundError: No module named 'quick-cd... to install padas library. You can install quick-cd python with following
ModuleNotFoundError: No module named 'quick-clojure'
ModuleNotFoundError: No module named 'quick-clojure'  Hi, My... 'quick-clojure' How to remove the ModuleNotFoundError: No module named 'quick-clojure' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-datasets'
ModuleNotFoundError: No module named 'quick-datasets'  Hi, My... named 'quick-datasets' How to remove the ModuleNotFoundError: No module named 'quick-datasets' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick_framework'
ModuleNotFoundError: No module named 'quick_framework'  Hi, My... named 'quick_framework' How to remove the ModuleNotFoundError: No module named 'quick_framework' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-gr'
ModuleNotFoundError: No module named 'quick-gr'  Hi, My Python... 'quick-gr' How to remove the ModuleNotFoundError: No module named 'quick-gr... to install padas library. You can install quick-gr python with following
ModuleNotFoundError: No module named 'quick_framework'
ModuleNotFoundError: No module named 'quick_framework'  Hi, My... named 'quick_framework' How to remove the ModuleNotFoundError: No module named 'quick_framework' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-gr'
ModuleNotFoundError: No module named 'quick-gr'  Hi, My Python... 'quick-gr' How to remove the ModuleNotFoundError: No module named 'quick-gr... to install padas library. You can install quick-gr python with following
ModuleNotFoundError: No module named 'quick_orm'
ModuleNotFoundError: No module named 'quick_orm'  Hi, My Python... 'quick_orm' How to remove the ModuleNotFoundError: No module named 'quick... have to install padas library. You can install quick_orm python with following
ModuleNotFoundError: No module named 'quick-pandas'
ModuleNotFoundError: No module named 'quick-pandas'  Hi, My Python... 'quick-pandas' How to remove the ModuleNotFoundError: No module named 'quick-pandas' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-qemu'
ModuleNotFoundError: No module named 'quick-qemu'  Hi, My Python... 'quick-qemu' How to remove the ModuleNotFoundError: No module named 'quick-qemu' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'quick-secure'
ModuleNotFoundError: No module named 'quick-secure'  Hi, My Python... 'quick-secure' How to remove the ModuleNotFoundError: No module named 'quick-secure' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'quick-start'
ModuleNotFoundError: No module named 'quick-start'  Hi, My Python... 'quick-start' How to remove the ModuleNotFoundError: No module named 'quick-start' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'ss-quick'
ModuleNotFoundError: No module named 'ss-quick'  Hi, My Python...-quick' How to remove the ModuleNotFoundError: No module named 'ss-quick... to install padas library. You can install ss-quick python with following
ModuleNotFoundError: No module named 'ss-quick'
ModuleNotFoundError: No module named 'ss-quick'  Hi, My Python...-quick' How to remove the ModuleNotFoundError: No module named 'ss-quick... to install padas library. You can install ss-quick python with following
ModuleNotFoundError: No module named 'supervisor-quick'
ModuleNotFoundError: No module named 'supervisor-quick'  Hi, My... named 'supervisor-quick' How to remove the ModuleNotFoundError: No module named 'supervisor-quick' error? Thanks   Hi, In your
php parse soap response
php parse soap response  What is soap and how can i convert a soap response to XML. Thanks in Advance
Version of com.codesnippets4all>quick-json dependency
List of Version of com.codesnippets4all>quick-json dependency
Version of taglibs>response dependency
List of Version of taglibs>response dependency

Ads