Computer Applications
Missing a semicolon in a statement is what type of error?
- Logical
- Syntax
- Runtime
- No error
Related Questions
int x = (int)32.8; is an example of …………… typecasting.
- implicit
- automatic
- explicit
- coercion
The code obtained after compilation is known as:
- source code
- object code
- machine code
- java byte code
Consider the following program segment and select the output of the same when n = 10 :
switch(n) { case 10 : System.out.println(n*2); case 4 : System.out.println(n*4); break; default : System.out.println(n); }- 20
40 - 10
4 - 20, 40
- 10
10
- 20
A method which does not modify the value of variables is termed as:
- Impure method
- Pure method
- Primitive method
- User defined method