Java Programming Questions & Answers: part11



Software Programming : Java Programming QUESTIONS AND ANSWERS :: part11 : 11 to 15

Following Software Programming language Entrance Multiple choice objective type questions and answers will help you in Software Programming 2024 examinations :

11.What is the result of the expression 75.22 + “5.2”?

The double value in 80.42
The string in “80.42”.
The string is “75.225.2”
The string is “75.222.5”
The long value is 80.

12.java server page is an extension of

html
xml
xhtml
sgml
java servlet.

13.Consider the following program written in Java to answer this Question: 01.class StringEx{ 02.public static void main(String args[]) { 03.String s1="University of ICFAI”; 04.String s2="hello"; 05.String s3="HELLO”; 06.System.out.println(s1.substring(10,13)); 07.System.out.println(s2.equalsIgnoreCase(s3)); 08.}09.}What would be the output of the statement indicated in line number 06 when the program is executed?

University of ICFAI
error
of
Colombo
ity.

14.Consider the following additional driver program: public class Main { public static void main(String[] args) { ClassB b = new ClassB(1); ClassC c = new ClassC(2); } } Which of the following would the output be?

ClassA() constructor
B(int) constructor
A() constructor
B(int) constructor
C(int) constructor

More Java Programming QUESTIONS AND ANSWERS available in next pages

    Health is the greatest gift, contentment is the greatest wealth -Buddha
If your ship doesn’t come in, swim out to meet it!-Jonathan Winters