|
Core%20java - Interview Questions and Answers for 'Abs' - 0 question(s) found - Order By Newest |
|
|
| Q1. Which method needs to be implemented if a class is implementing comparable interface ? | Core Java |
| a. comp | b. compare | c. compareTo | d. compareEquals |
| Ans.c. compareTo |
|
|
| Q2. What is Dirty Read in Database Transactions ? | Database |
| a. Data Read by Transaction 2 which hasn't yet updated by Transaction 1 | b. Data Read by Transaction 2 which has been updated and commited by Transaction 1 | c. Data Read by Transaction 2 which has been updated but not commited by Transaction 1 | d. Inability of Transaction 2 to read Data when Transaction 1 is updating. |
| Ans.c. Data Read by Transaction 2 which has been updated but not commited by Transaction 1 |
|
|
| | a. Abstract Class is only meant to be sub classed and not supposed to be instantiated. | b. Abstract class handlers can be used to handle derived class objects. | c. We can't have an abstract class without abstract methods. | d. Abstract class has member elements. |
| Ans.c. We can't have an abstract class without abstract methods. |
|
|
| | a. String | b. StringBuffer | c. StringBuilder | d. None of these create immutable objects. |
| Ans.a. String |
|
|
| Q5. Which of the following can be declared abstract ? | Core Java |
| a. static methods | b. instance methods | c. static variable | d. instance variables |
| Ans.b. instance methods |
|
|
| Q6. In majority of the cases, the following join will give maximum number of results ? Reference | Database |
| a. Inner Join | b. Outer Join | c. Left Join | d. Right Join |
| Ans.b. Outer Join |
|
|
| | a. Left Join and Right Join gives equal number of Results | b. Outer Join and Inner Join gives equal number of Results | c. Inner Join gives maximum number of results records | d. Inner Join gives minimum number of result records |
| Ans.d. Inner Join gives minimum number of result records |
|
|
| Q8. Which of the following is not true for Prepared Statements ? | Database |
| a. Prepared Statements provides better performance | b. Prepared Statements prevent SQL Injection attacks | c. Prepared Statements provide ORM capabilities | d. Prepared Statement provides DB side caching |
| Ans.c. Prepared Statements provide ORM capabilities |
|
|
|
|