Tutor profile: Khang D.
Subject: Python Programming
What is the advantage of Python over Java?
- Python does not require the use of semicolons, parentheses (except for PRINT statements), curly braces and instead opt for indentation as a form of block identification. - Python is a dynamically-typed language, which dictates that the types of variables are assumed at runtime. For example, a simple variable can be declared and initialized as so a = 5 b = "string" - It is also much simpler than Java due to its syntax which does not require a lot of overhead.
Subject: Java Programming
Why does Java prohibit generic array creation?
Java prohibits generic array since, at runtime, an array must contain the information on the class of its component.
Subject: Computer Science (General)
What is the main advantage of passing arguments by reference? How is it useful?
Passing arguments by reference can change the value of the argument and retain that change after a function has exited. This can also be useful in the fact that since there is no extra copy of a large object is made, the program can be executed faster than the case in which passing by value is used.
needs and Khang will reply soon.