| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,419
Thanks: 0 Thanked 18 Times in 13 Posts Thanks: 0
Thanked 18 Times in 13 Posts
Rep Power: 19
|
Find the o/p of the following Q. 1 Which of the following return true?
Select all correct answers. Q. 2 Which of the following do not lead to a runtime error?
Select all correct answers. Q. 3 Which of the following are so called "short circuit" logical operators?
Select all correct answers. Q. 4 Which of the following are acceptable?
Select all correct answers. Q. 5 What is the result of compiling and running the following code: public class Test { static int total = 10; public static void main (String args []) { new Test(); } public Test () { System.out.println("In test"); System.out.println(this); int temp = this.total; if (temp > 5) { System.out.println(temp); } } }
Select all correct answers. Q 6 Which of the following is correct:
Select the most appropriate answer. Answers 13. A, B 14. A, B, C, D 15.B, C 16. A, E 17. D 18. D 19. A Edited by: keerthi
__________________
\"Winners don\'t do different things.They do things Differently\" |
|
|
|
|
|
#2 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
hello
Q 6 Which of the following is correct:
Select the most appropriate answer. thiss is the way of representing the string array !
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#3 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
hello
Q. 5 What is the result of compiling and running the following code: public class Test { static int total = 10; public static void main (String args []) { new Test(); } public Test () { System.out.println("In test"); System.out.println(this); int temp = this.total; if (temp > 5) { System.out.println(temp); } } } The class will not compile
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#4 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
hello
hello Q. 4 Which of the following are acceptable?
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#5 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
hello
Q. 3 Which of the following are so called "short circuit" logical operators?
Select all correct answers. Logical AND n OR are called short circiut operators
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#7 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
hello
Q. 2 Which of the following do not lead to a runtime error?
Select all correct answers. Yes all r working fine!
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#8 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
Q. 1 Which of the following return true?
Select all correct answers
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#9 (permalink) |
|
Moderator
Join Date: Feb 2006
Posts: 1,413
Thanks: 0 Thanked 9 Times in 8 Posts Thanks: 0
Thanked 9 Times in 8 Posts
Rep Power: 18
|
hello all
sory my above answer is wrong so ehrz my correct answer Q. 5 What is the result of compiling and running the following code: public class Test { static int total = 10; public static void main (String args []) { new Test(); } public Test () { System.out.println("In test"); System.out.println(this); int temp = this.total; if (temp > 5) { System.out.println(temp); } } }
There is no problem with the code the class compiles successfully and gives the output as In Test 10 as the answer
__________________
http://livetolead.blogspot.com/ all the best Arise Awake N Stop Not Until Ur Goal Is Reached! |
|
|
|
|
|
#10 (permalink) |
|
Member
Join Date: Mar 2006
Location: India
Posts: 51
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
|
hello, keerthi sir, as you privide answers of asked questions has no serial no.as questions are and more then the questions asked.it has done by knowingly or some reason.and no explanation of answers. as given below: Find the o/p of the following Q. 1 Which of the following return true?
Select all correct answers. Q. 2 Which of the following do not lead to a runtime error?
Select all correct answers. Q. 3 Which of the following are so called "short circuit" logical operators?
Select all correct answers. Q. 4 Which of the following are acceptable?
Select all correct answers. Q. 5 What is the result of compiling and running the following code: public class Test { static int total = 10; public static void main (String args []) { new Test(); } public Test () { System.out.println("In test"); System.out.println(this); int temp = this.total; if (temp > 5) { System.out.println(temp); } } }
Select all correct answers. Q 6 Which of the following is correct:
Select the most appropriate answer. Answers 13. A, B 14. A, B, C, D 15.B, C 16. A, E 17. D 18. D 19. A
__________________
_________________ sky is the limit With Regards...! amit kulshreshtha |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|