Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for programAngel
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Edit | Post #296117 |
Post edited: |
— | 4 months ago |
| Comment | Post #296117 |
done, thank you (more) |
— | 4 months ago |
| Edit | Post #296141 |
Post edited: |
— | 4 months ago |
| Edit | Post #296117 |
Post edited: |
— | 4 months ago |
| Edit | Post #296141 | Initial revision | — | 4 months ago |
| Answer | — |
A: JOptionPane doesn't show; application combines Swing and console. Apparently the JOptionPane is behind eclipse as it not not the top windows. It does "show" but only behind eclipse. Thanks FractionalRadix (more) |
— | 4 months ago |
| Comment | Post #296117 |
no, I don't see any error.
But FractionalRadix is right. The problem is that the JOptionPane is created behind eclipse and is hidden. (more) |
— | 4 months ago |
| Comment | Post #296117 |
you are right.
Thank you.
That was the problem. it was hidden behind eclipse so it looked to me as if the program stack. (more) |
— | 4 months ago |
| Edit | Post #296117 |
Post edited: |
— | 4 months ago |
| Edit | Post #296117 | Initial revision | — | 4 months ago |
| Question | — |
JOptionPane doesn't show; application combines Swing and console. What is wrong in the following code: ``` package oren; import java.util.Scanner; import javax.swing.JOptionPane; public class Main { public static void main(String[] args) { double x,y,z; Scanner scanner = new Scanner(System.in); System.out.println("what are the x and y si... (more) |
— | 4 months ago |
| Comment | Post #295611 |
in other word, interpreter always compile the code (including all step of compilation like parsing) and then run it. because the cpu run in any case can run only the machine code.
So to say that the difference is whether the code is compiled once and kept as compiled binary or the source cod... (more) |
— | 6 months ago |
| Comment | Post #295611 |
By "compile," I guess you mean translating to machine code and executing it. But that is what happens every time an interpreter runs. It translates the script into machine code and then runs it. But in the case of compilation, like in C, it creates a binary shared library or a file once, and then... (more) |
— | 6 months ago |
| Edit | Post #295611 |
Post edited: |
— | 7 months ago |
| Edit | Post #295611 | Initial revision | — | 7 months ago |
| Answer | — |
A: What are the criteria to define if a programming language is compiled or interpreted? if the code is compiled everytime before running, then it is interpreted. If you get a ready executable binary and run it again and again then it is compiled. Java is sorted of both. you get executable binary of byte code, but every running jvm compile it again to machine code before running. (more) |
— | 7 months ago |
