java programming

java programming

University

15 Qs

quiz-placeholder

Similar activities

Final Quiz

Final Quiz

University

20 Qs

Fundamentos JAVA

Fundamentos JAVA

University

20 Qs

OOP

OOP

University

13 Qs

Java Programming

Java Programming

University

15 Qs

TestePoo

TestePoo

University

18 Qs

Third Year Placement Training Revision Test

Third Year Placement Training Revision Test

University

10 Qs

Core Java Quiz

Core Java Quiz

University

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

java programming

java programming

Assessment

Quiz

Computers

University

Medium

Created by

Thiruveedula Srinivasulu

Used 5+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?