Object oriented concepts UE Past Papers Questions.


View All Courses

(117) Question Category: Short answers

What is the output of the following program ?
public class Watoto extends Wazazi{
public void doSomething(){
System.out.println("Parents care children");
}
}
public class Supplementary{
public static void main(String[]args){
Watoto c= new Wazazi();
c.doSomething();
}
}
class Watoto{
public void doSomething(){
System.out.println("Children cry");
}
}

Answer / Solution

UNSOLVED

(118) Question Category: Short answers

Define this terms and provide an example.
Array and Multidimentional array.

Answer / Solution

UNSOLVED

(119) Question Category: Short answers

Correct if there is any error and state what will be the output
public class Test2D{
public static void main(String[]args){
int[][]m={
{15,25,35},{35,45,50}
}
int sum;
sum=0;
for(int i=0;i<2;i++)
for(int j=0;j<2;j++)
sum+=m[i][j];
System.out.println(sum);
}
}

Answer / Solution

UNSOLVED

(120) Question Category: Short answers

Java has three type of control structure discuss them and provide one example for each.

Answer / Solution

UNSOLVED

(121) Question Category: Short answers

Differentiate betwween the following control loop if and nested if

Answer / Solution

UNSOLVED

View All Courses
News & Updates | Recently
Recent Updates
questions

2024-05-02: questions

Questions Uploaded on 2024-05-02


questions

2024-03-29: questions

Questions Uploaded on 2024-03-29


questions

2024-03-19: questions

Questions Uploaded on 2024-03-19

Dismissible in 10 seconds