answersLogoWhite

0

Such a program is called a Quine. http://en.wikipedia.org/wiki/Quine_(computing)

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

How do you solve no console in java i have already enabled java console in java window from control panel but whenever i run my java program i keep receiving a no console message?

If you have enabled the Java Console in the Java Control Panel but are still not seeing the console when running your Java program, there are a few possible reasons for this issue. Firstly, ensure that your Java program is actually printing output to the console using System.out.println() statements. Additionally, check if your program is running in an environment that supports console output, such as a terminal or command prompt. Finally, make sure that your program is not terminating too quickly before you can see the console output, as this can sometimes give the appearance of no console being available.


What is platform independent?

ANSWER: Platform independence means executing a code irrespective of the Operating System on which it is being executed. Java is called a platform independent language because # The output of the JAVA compiler is bytecode which is not directly executable. # the bytecode is then interpreted by the JVM on respective OS. The bytecode generated after compilation can be executed on any machine with any OS with the help of JVM. e.g. U write a simple java program ("samp.java") and compile it, u get a "samp.class" file after compiling without any errors, now you can execute this program on windows OS or Linux or Macintosh which generates the same output and runs fine on all OS.


Why wont your c plus plus program stay open?

If you are talking about the program executing, but the output screen being displayed for a flash and then disappearing, I suggest adding getch() or getchar() function at the end of your main function. This will make sure that the output screen waits for you to press a character before the program terminates.


What is the difference between context switch and process switch?

when ever an interrupt occurs, it saves the context of the program being executed & sets the PC to the starting address of the interrupt handling program. now after servicing the interrupt if the same process is resumed which was being interrupted then we will say a context switch has occurred.But imagine after servicing the interrupt if a new process is to be executed then some more work is required, that is it has to save some more information from the PCB to keep reference to resume its execution and we say process switch has occurred..!!


When does a Borland c compiler throw an error as could not execute 16-bit process error code 32 when a program is executed after successful compilation?

If a program compiles and links successfully then there can be no compiler errors, period. Your error is a runtime error because the error only occurs when the machine code is executed, not during the compilation or linking processes. Runtime error 32 indicates a sharing violation. This essentially means you've attempted to access a file that is being used by another process.

Related Questions

What is the function of the program counter register?

The function of the program counter register is to hold the address of the instruction that is being executed and (later) to hold the address of the instruction that will be executed next.


How do you solve no console in java i have already enabled java console in java window from control panel but whenever i run my java program i keep receiving a no console message?

If you have enabled the Java Console in the Java Control Panel but are still not seeing the console when running your Java program, there are a few possible reasons for this issue. Firstly, ensure that your Java program is actually printing output to the console using System.out.println() statements. Additionally, check if your program is running in an environment that supports console output, such as a terminal or command prompt. Finally, make sure that your program is not terminating too quickly before you can see the console output, as this can sometimes give the appearance of no console being available.


What provides method whereby your browser can request that a program be executed instead of just being delivered to the browser?

Common Gateway Interface (CGI)


What is platform independent?

ANSWER: Platform independence means executing a code irrespective of the Operating System on which it is being executed. Java is called a platform independent language because # The output of the JAVA compiler is bytecode which is not directly executable. # the bytecode is then interpreted by the JVM on respective OS. The bytecode generated after compilation can be executed on any machine with any OS with the help of JVM. e.g. U write a simple java program ("samp.java") and compile it, u get a "samp.class" file after compiling without any errors, now you can execute this program on windows OS or Linux or Macintosh which generates the same output and runs fine on all OS.


Why wont your c plus plus program stay open?

If you are talking about the program executing, but the output screen being displayed for a flash and then disappearing, I suggest adding getch() or getchar() function at the end of your main function. This will make sure that the output screen waits for you to press a character before the program terminates.


How do you find the list of programs currently being executed in ms dos?

No such functionality exists because, in most situations, only one program can be run at a time in MS-DOS.


What is the use of INPUT statement?

Input command is used to enter the values while the program is being executed. this command waits for the user to enter the information and then assigns the values accordingly.


What happens when a program is running?

It consumes your memory space in primary memory and can manipulate and create files on the system. Also it is being executed by the CPU so it further consumes the CPU time


How do you wire timer to 3 parallel switches?

To wire a timer to 3 parallel switches, connect the hot wire from the power source to the common terminal of each switch. Then connect the traveler wires from each switch to the timer input terminal. Finally, connect the load wire from the timer output terminal to the fixture being controlled. Make sure to follow the manufacturer's instructions for your specific timer model.


What French saint was executed for witchcraft in 1431?

Saint Joan of Arc - However, she was executed for being a heretic, not a witch.


Who executed people that were accused of being witches?

Christians


Who executed people for being witches?

Other people.