GoConqr has a new look! Let us know what you think.

Quiz

Java Class and Object

Duong Phan Hoai 1 question Updated 26 Feb 2020

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (1)

  1. 1Predict the output?

    package main;
    class T {
    int t = 20;
    }
    class Main {
    public static void main(String args[]) {
    T t1 = new T();
    System.out.println(t1.t);
    }
    }
    1. A0
    2. Bgarbage value
    3. Ccompiler error
    4. Druntime error

Information

Description
2 Java Foundation Quiz on Java Class and Object, created by Duong Phan Hoai on 26/02/2020.
Language
English
Views
5
History
Created on 26 Feb 2020 · updated on 26 Feb 2020
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?