java programming

java programming

University

15 Qs

quiz-placeholder

Similar activities

OOP 1 Undiksha

OOP 1 Undiksha

12th Grade - University

13 Qs

PARC Linux Basic Part 2

PARC Linux Basic Part 2

University

20 Qs

CSS Pseudo dan CSS Grid System

CSS Pseudo dan CSS Grid System

University

20 Qs

SQL Quiz

SQL Quiz

University

18 Qs

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

Adobe Photoshop

Adobe Photoshop

University

10 Qs

Google Aptitude Test

Google Aptitude Test

KG - University

10 Qs

Memory-Mobo-Hard/Software

Memory-Mobo-Hard/Software

University

18 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