banner
Top Selling Multipurpose WP Theme

The quiz consists of a number of alternative questions and programming questions. Subjects coated embody: Java courses and objects, Java variables and knowledge sorts, Java strategies, Java consumer enter, and formatting output in Java.

Query 1:

What would be the output of the next program?

public class essential

{

public static void essential(String[] argument) {

String str = “1234”;

int a =int(str);

System.out.println(a);

}

}

  1. one two three
  2. 1234
  3. 12340
  4. compilation error

Query 2:

What’s the return kind of a way that returns no worth?

a) integer

b) float

c) invalid

d) double

Query 3:

Which of the next strategies has the identical identify as a category?

a) Finalize

b) Delete

c) class

d) constructor

Query 4:

Which methodology will be outlined solely as soon as in a program?

a) Fundamental methodology

b) Finalization methodology

c) Static methodology

d) Personal methodology

Query 5:

What would be the output of the next program?

class essential {

public static void essential(string argument[]) {

floating level quantity f = 5.25f;

double d = 5.25

System.out.println(f == d);

}

}

  1. fact
  2. error

Additionally learn: Troublesome PSLE ​​Math Questions, Block Coding Quiz for Youngsters, Scratch Coding Quiz for Youngsters

banner
Top Selling Multipurpose WP Theme

Converter

Top Selling Multipurpose WP Theme

Newsletter

banner
Top Selling Multipurpose WP Theme

Leave a Comment

mikrobid
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.