You are not logged in.

#1 2015-06-13 04:45:27

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Interface Void Print:

Java Quizzes Java Language Interfaces And Abstract Classes

Question:
Which of the following is a correct interface?

Option A):
abstract interface A { abstract void print(); { }}
Option B):
abstract interface A { print(); }
Option C):
interface A { void print(); }
Option D):
interface A { void print() { } }

Correct Answer is Option C):
interface A { void print(); }


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-06-13 04:45:27

Advertisement
Ads By Google

Re: Interface Void Print:



\n

Board footer