Sunday, 24 June 2018

TCS Tech Lounge JAVA Final-3


What is the return type of read() method in BufferedReader class?
Ans: Boolean


Generics, enumerations supported by
Ans:  java SE2


Which of the following is not true about modifying rows in a table?
Ans: You can update more than one row at a time.


_ _ _ _ in java identifies and discards the objects that are no longer needed by a program so that their resources can be reclaimed and reused.
ANS: Garbage collection

_ _ _ _ _ is also known as static variable
ANS: Class variables


FileReader is meant for reading streams of characters. For reading streams of raw bytes, use FileInputStream.
Ans: True


Which exception does close() method throw in BufferedReader class?
Ans: IO Exception


What type of exception can readLine() of DataInputStream throws?
Ans: IOException


What is the return type of write() method in BufferedWriter Class?
Ans: void()


In which Package Writer classes are defined?
Ans: java.io

When three or more AND and OR conditions are combined, it is easier to use the SQL keywords:
Ans: Both IN and NOT IN


Emp_Bonus table has the following data.
Employee bonus
A 1000
B 2000
A 500
C 700
B 1250
What is the SQL query to get the employees who received bonus more than $1,000?
Ans:  c select employee, sum(bouns) from emp_bonus group by employee having sum(bonus)>1000;


What does write(int x) of BufferedOutputStream do?
Ans: Writes the specified bytes to output stream

1 comment:

  1. Thanks for sharing this informative content , Great work
    Leanpitch provides online training in Product prototyping during this lockdown period everyone can use it wisely.
    icp-cat training

    ReplyDelete