1. What will be the output of the program? System.out.println(Math.sqrt(-4D));





Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->Output of alternators employed in automobile electrical system is regulated by a :....
QA->BIOS (Basic Input Output System) software stored on :....
QA->What is social welfare program "Integrated Rural Development Program (IRDP) -1978" intented for ?....
QA->Name the translatory program which translates the high level language into machine language before running the program?....
QA->Who is the author of “Anand Math”?....
MCQ->Which of the following relations is/are true?I. $$\sqrt{7}+\sqrt{3}>\sqrt{5}+\sqrt{5}$$II. $$\sqrt{5}+\sqrt{5}>\sqrt{2}+\sqrt{8}$$ III. $$\sqrt{5}+\sqrt{5}>\sqrt{7}+\sqrt{3}$$ ....
MCQ->What will be the output of the program? boolean bool = true; if(bool = false) / Line 2 / { System.out.println("a"); } else if(bool) / Line 6 / { System.out.println("b"); } else if(!bool) / Line 10 / { System.out.println("c"); / Line 12 / } else { System.out.println("d"); }....
MCQ->What will be the output of the program? class Tree { } class Pine extends Tree { } class Oak extends Tree { } public class Forest1 { public static void main (String [] args) { Tree tree = new Pine(); if( tree instanceof Pine ) System.out.println ("Pine"); else if( tree instanceof Tree ) System.out.println ("Tree"); else if( tree instanceof Oak ) System.out.println ( "Oak" ); else System.out.println ("Oops "); } }....
MCQ->What will be the output of the program? String s = "hello"; Object o = s; if( o.equals(s) ) { System.out.println("A"); } else { System.out.println("B"); } if( s.equals(o) ) { System.out.println("C"); } else { System.out.println("D"); } A B C D....
MCQ->What will be the output of the program? class s1 extends Thread { public void run() { for(int i = 0; i < 3; i++) { System.out.println("A"); System.out.println("B"); } } } class Test120 extends Thread { public void run() { for(int i = 0; i < 3; i++) { System.out.println("C"); System.out.println("D"); } } public static void main(String args[]) { s1 t1 = new s1(); Test120 t2 = new Test120(); t1.start(); t2.start(); } }....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions