Home / MCQ Bank / Computer
Computer Data Types And Variables Difficulty: Medium

What will be the output of the following Java code? class area { public static void main(String args[]) { double r, pi, a; r = 9.8; pi = 3.14; a = pi * r * r; System.out.println(a); } }

Select the correct option to test your answer:

More Computer Questions

What is the purpose of the 'nothrow' parameter in the 'new' operator in C++? What Python library provides interactive and web-based data visualizations? What will be output of following program? public class Test{ public static void main(String[] args){ byte b=127; b++; b++; System.out.println(b); } } Which of the following is a static polymorphism mechanism? Which algorithm in C++ STL is used to sort a range of elements using quicksort?