The method forward(request,response) will
Ans: return back to the same method from where the forward was invoked
6. Select a query that retrieves all of the unique coursename from the student table?
Ans: SELECT DISTINCT coursename FROM studentinfo;
7. Which of the following is true?
Ans: all of the above (Enum in java is a data type, enum can have fields, constructors and methods, enum may implement many interfaces but cannot extend any class because it internally extends Enum class)
8. ON UPDATE CASCADE ensures which of the following?
Ans: Data Integrity
9. public class Test{
public static void main(String args[]){
String obj="I LIKE JAVA";
System.out.println(obj.charAt(5));
}
}
What is the output of above program?
Ans: E
10. class Equals
{
public static void main(String args[])
{
int x=100;
double y=100.1;
boolean b=(x=y); /*Line 7*/
System.out.println(b);
}
}
What is the output of above code snippet?
Ans: Compilation fails
11. Which of the following interprets html code and renders webpages to user?
Ans: browser
12. Which normal form is considered adequate for relational database design?
Ans: 3NF
13. What type of exception can readLine() of DataInputStream throws?
Ans: IOException
14. Which of these is method is used for writing bytes to an OutputStream?
Ans: write()
15. Is Java an open source software language?
Ans: Yes, Its an open source
16. Which of these are the subclasses of InputStream class?
Ans: All of the mentioned (AudioInputStream, ByteArrayInputStream, FileInputStream)
17. What is the return type of read() method in BufferedInputStream?
Ans: int
18. Every statement in java programming language ends with
Ans: Semicolon
19. All the methods in an interface are_______and________by default
Ans: Public, abstract
20. A stream that is intended for general purpose IO, not usually character, data, is called..
Ans: ByteStream
21. Parameter of______datatype is accepted by skipBytes()?
Ans: int
22. Which of these interface is not a member of java.io package?
Ans: ObjectFilter
23. Is the read function of DataInputStream class overridden?
Ans: True
24. Which of these method of class StringBuffer is used to concatenate the string representation to the end of invoking string?
Ans: append()
25. The reset method of BufferedInputStream accepts parameters
Ans: False
Ans: return back to the same method from where the forward was invoked
6. Select a query that retrieves all of the unique coursename from the student table?
Ans: SELECT DISTINCT coursename FROM studentinfo;
7. Which of the following is true?
Ans: all of the above (Enum in java is a data type, enum can have fields, constructors and methods, enum may implement many interfaces but cannot extend any class because it internally extends Enum class)
8. ON UPDATE CASCADE ensures which of the following?
Ans: Data Integrity
9. public class Test{
public static void main(String args[]){
String obj="I LIKE JAVA";
System.out.println(obj.charAt(5));
}
}
What is the output of above program?
Ans: E
10. class Equals
{
public static void main(String args[])
{
int x=100;
double y=100.1;
boolean b=(x=y); /*Line 7*/
System.out.println(b);
}
}
What is the output of above code snippet?
Ans: Compilation fails
11. Which of the following interprets html code and renders webpages to user?
Ans: browser
12. Which normal form is considered adequate for relational database design?
Ans: 3NF
13. What type of exception can readLine() of DataInputStream throws?
Ans: IOException
14. Which of these is method is used for writing bytes to an OutputStream?
Ans: write()
15. Is Java an open source software language?
Ans: Yes, Its an open source
16. Which of these are the subclasses of InputStream class?
Ans: All of the mentioned (AudioInputStream, ByteArrayInputStream, FileInputStream)
17. What is the return type of read() method in BufferedInputStream?
Ans: int
18. Every statement in java programming language ends with
Ans: Semicolon
19. All the methods in an interface are_______and________by default
Ans: Public, abstract
20. A stream that is intended for general purpose IO, not usually character, data, is called..
Ans: ByteStream
21. Parameter of______datatype is accepted by skipBytes()?
Ans: int
22. Which of these interface is not a member of java.io package?
Ans: ObjectFilter
23. Is the read function of DataInputStream class overridden?
Ans: True
24. Which of these method of class StringBuffer is used to concatenate the string representation to the end of invoking string?
Ans: append()
25. The reset method of BufferedInputStream accepts parameters
Ans: False
Thanks for sharing this informative content , Great work
ReplyDeleteCreative Thinking for creating an impact!
Product Thinking Community introduces PT Labs powered by Leanpitch
Product thinking conference
Thanks for sharing this informative content , Great work
ReplyDeleteLeanpitch provides online training in Devops during this lockdown period everyone can use it wisely.