java programming

java programming

University

15 Qs

quiz-placeholder

Similar activities

Week 4

Week 4

University

15 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Software Engineering :TEST 2

Software Engineering :TEST 2

University

10 Qs

Redes I- Componentes y tipos de redes

Redes I- Componentes y tipos de redes

University

20 Qs

Firewall and Network Security

Firewall and Network Security

University

15 Qs

PBO Inheritance Episode 2

PBO Inheritance Episode 2

University

18 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

2.4 - 2.6

2.4 - 2.6

University

15 Qs

java programming

java programming

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Thiruveedula Srinivasulu

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Java code?

  1. class increment {

    1. public static void main(String args[]){

  2. int g = 3;

  3. System.out.print(++g * 8); }

  4. }

32

33

24

25

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the extension of compiled java classes?

.txt

.class

.js

.java

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these keywords is used to define interfaces in Java?

intf

interface

Interface

Intf

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one of the following is not an access modifier?

protected

public

void

private

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Java program?

  1. final class A {

  2. int i;

  3. }

  4. class B extends A {

  5. int j;

  6. System.out.println(j + " " + i);

  7. }

  8. class inheritance

  9. {

  10. public static void main(String args[])

  11. {

  12. B obj = new B();

  13. obj.display();

  14. }

  15. }

2 2

3 3

Runtime Error

Compilation Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does method overloading is determined?

At coding time

At execution time

At run time

At compile time

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of Constructors?

int

float

void

none of the mentioned

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers