Question: 1. Write true if the code has no syntax error, otherwise false. public final Person{ } 19. Write true if the code has no syntax
1. Write true if the code has no syntax error, otherwise false.
public final Person{ }
19. Write true if the code has no syntax error, otherwise false.
public interface Person{ public void test(); }
20. Write true if the code has no syntax error, otherwise false.
int x = 0/1;
23. Write true if the code has no syntax error, otherwise false.
int[] x[] = new int[3];
24. Write true if the code has no syntax error, otherwise false.
public class Student extends Person{} public class Person{}
25. Which of the following is the correct syntax to define a method?
a.
b.
c.
d. package
30. Write true if the code has no syntax error, otherwise false.
int[][] a;
29. Which of the following shows Overloading method?
Select one:
a. All of the choices
b. void test(int a){} void test(int b, int c){}
c. int test(int x){} int test(double y){}
d. double test(int x){} double test(double x){}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
