You are not logged in.

#1 2015-06-15 05:57:07

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

Compilation Error:

Java Quizzes Java Language Flow Control

Directions:
public class Test{
        public static void main(String[] args){
                int x=10, y=0;
                if(x && y){
                        System.out.print("TRUE");
                }
                else{
                        System.out.print("FALSE");
                }
        }


Question:
What will be the output?

Option A):
FALSE
Option B):
Runtime Error
Option C):
TRUE
Option D):
Compilation Error

Correct Answer is Option D):
Compilation Error


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

2015-06-15 05:57:07

Advertisement
Ads By Google

Re: Compilation Error:



\n

Board footer