Assume there is a method provided getNextperson() which gives Person objects which have comparable interface implemented, now read from a file records and sort it and give first 1000 records, write code on the paper
Java Consultant Interview Questions
30,818 java consultant interview questions shared by candidates
Given two files that has list of words (one per line), write a program to show the intersection.
Java is pass by value or pass by ref?
Core Java questions & this person was also not aware about the immutability concept properly except what is given on internet. I had to teach him the immutability of class & object, else for this person both are same.
if there are 9 white balls and 7 black balls in a bag .You have to take out balls one by one from the bag.then in how many attempts you wilk get a matched pair
What is java?
public class Person { Person father; Person mother; Gender gender; Integer age; List<Person> children; int level = 0; public enum Gender { Male, Female; } } For the above class, you basically have to implement 2 methods. public List<Person> getOldestSisters() public List<Person> getGreatestAncestors()
Basic Java Questions: Annonymous Classes, Nested Classes etc.
1- write a java program to print the total arrangement of any string without using collection and string.
What is inheritance?
Viewing 21 - 30 interview questions