+ 2

What is Run-time and Compile-time?

🤔

25th Jun 2022, 2:23 PM
Stranger
Stranger - avatar
6 odpowiedzi
+ 4
Runtime is during the execution of the program, that means while the program is running. Compile time is during compilation of the program, that mean while turning your program (source code) into machine code(machine readable format of your code). Since you have mentioned Java. Compilation for java would be where your program gets converted into byte code(platform independent semi-binary form)
25th Jun 2022, 2:36 PM
Bhaveshsingh Pawar
Bhaveshsingh Pawar - avatar
+ 1
Stranger Binary form. We cannot communicate/speak with the computer directly in our language (English, Japanese, etc.), so we use programming languages (Assembly, C, Java, etc.) Now the thing is in the entire world all computers know/understand only one language "Binary". This language is written in forms of 0 and 1. Like, 01001010101101000101011110100011 (I wrote this randomly). So, now question comes about languages like C, Java which are text-based/human readable. A compiler compiles/ translates these languages into a machine code(the binary form of your code as told above.)
26th Jun 2022, 5:53 AM
Bhaveshsingh Pawar
Bhaveshsingh Pawar - avatar
0
Binary form is 0's and 1's . Our java code will first compile(which converts the source code to machine level code) and when the compilation is done it runs the code which is called the runtime
25th Jun 2022, 6:12 PM
Arun Kumar
0
Arun Kumar very hard to understand😵
25th Jun 2022, 6:36 PM
Stranger
Stranger - avatar
0
ɴᴜʟʟ thanks buddy👍
26th Jun 2022, 6:01 AM
Stranger
Stranger - avatar
- 3
ɴᴜʟʟ now the question is What is Binary form?🤔
25th Jun 2022, 3:07 PM
Stranger
Stranger - avatar