WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

JAVA Exam Preparation online Test

LANAGE // Demonstrating some String methods. class StringDemo2 { public static void main(String args[]) { String strOb1 = "First String"; String strOb2 = "Second String"; String strOb3 = strOb1; System.out.println("Length of strOb1: " + strOb1.length()); System.out.println("Char at index 3 in strOb1: " + strOb1.charAt(3)); if(strOb1.equals(strOb2)) System.out.println("strOb1 == strOb2"); else System.out.println("strOb1 != strOb2"); if(strOb1.equals(strOb3)) System.out.println("strOb1 == strOb3"); else System.out.println("strOb1 != strOb3"); } } What is the output of the above program?
Length of strOb1: 11 Char at index 3 in strOb1: s strOb1 != strOb2 strOb1 == strOb3
Length of strOb1: 12 Char at index 3 in strOb1: s strOb1 != strOb2 strOb1 == strOb3
Length of strOb1: 13 Char at index 3 in strOb1: s strOb1 != strOb2 strOb1 == strOb3
None of the above
Demonstrate String arrays. class StringDemo3 { public static void main(String args[]) { String str[] = { "one", "two", "three" }; for(int i=0; i str[0]: one str[1]: two str[2]: three
str[1]: one str[2]: two str[3]: three
str[0]: two str[1]: three str[2]: four
None of the above
// Here, Box is extended to include color. class ColorBox extends Box { int color; // color of box ColorBox(double w, double h, double d, int c) { width = w; height = h; depth = d; color = c; } } In the above program which oops property is used?
Polymarphisam
Inheritance
overloading
None of the above
// Using super to overcome name hiding. class A { int i; } // Create a subclass by extending class A. class B extends A { int i; // this i hides the i in A B(int a, int b) { super.i = a; // i in A i = b; // i in B } void show() { System.out.println("i in superclass: " + super.i); System.out.println("i in subclass: " + i); } } class UseSuper { public static void main(String args[]) { B subOb = new B(1, 2); subOb.show(); } } what is the ouput of the above program ?THE
i in superclass: 1 i in subclass: 2
i in superclass: 2 i in subclass: 1
i in superclass: 3 i in subclass: 4
None of the above
Users’ browser settings will override the settings you make in your style sheets by default. It is easy for users to change the fonts, background colors, and size of the text. Users can also choose to turn off functionality such as Java, JavaScript, and image display.
False
True
Description:

Get Ready For Java Exam With This JAVA Exam Preparation

Comments
poomari
By: poomari
612 days 16 hours 6 minutes ago

review 4th ques Ans

Master
By: Master
590 days 9 hours 22 minutes ago

do provide always short and precise questions so that it will be helpful for others to take interest in your test.

sunil
By: sunil
583 days 21 hours 49 minutes ago


JAVA Exam Preparation online Test
have 3 questions wrong answer .I have compiled .Dont believe that.

jagadeesh
By: jagadeesh
540 days 11 hours 23 minutes ago

hw 4th n 5th anss.....

thulasunya
By: thulasunya
526 days 17 hours 41 minutes ago

its a wrong ans where four comes

muku
By: muku
519 days 16 hours 18 minutes ago

PLZ describe 4th ans ....

chandubabu
By: chandubabu
498 days 12 hours 15 minutes ago

4th question answer is wrong i think

kc lim
By: kc lim
381 days 21 hours 47 minutes ago

Please modify the question no.4 answer. Is something wrong there.

Q5, i not really understand, because i choose Inheritance.
please, anyone can explain to me?

kc lim
By: Govendran
324 days 23 hours 53 minutes ago

hai kc lim,
Overloading is correct because the default constructor ColorBox() is overloaded by the parameterized constructor. got it?

Govendran
By: Govendran
324 days 23 hours 48 minutes ago

4th question answer is wrong..

muthukumar
By: muthukumar
197 days 19 hours 16 minutes ago

4th question answer is wrong.. Try to change it... otherwise close the website..

Anton
By: Anton
127 days 20 hours 59 minutes ago

this is not a test, this is bullsh*t

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
Sumit Jain
Java Teacher.
1 Follower
Test: 1

Your Facebook Friends on WizIQ