Search Interview Questions
| 3154 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core java - Interview Questions and Answers for 'Nexient' - 1 question(s) found - Order By Newest|
|Usually asked with Questions related to Generics.|
|Ans. Type erasure applies to the use of generics. When generics are used, they're pre compiled into compile time checks and execution-time casts.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve type erasures generics OpenCrowd Nexient intermediate   rare|
| Is this a valid initialization ? Explain.|
Collection<Collection> collection = new LinkedList<LinkedList>();
|What are concepts introduced with Java 5 ?|
|Is it legal to initialize List like this ?|
|Which of the following syntax is correct ?|
|Which of the following syntax are correct ?a. LinkedList<Integer> l=new LinkedList<int>();b. List<Integer> l=new LinkedList<int>();c. LinkedList<Integer> l=new LinkedList<Integer>();d. List<Integer> l = new LinkedList<Integer>();|
|Which of the following was not introduced with Java 5 ?|
|Explain Generics in Java ?|
| In case of generic class declared like following , What can T hold|
|Can we use generics with arrays in Java ?|