Interview Question
Hadoop Administrator/Developer Interview
-
ExperianJava Based Questions, Explain OOPS Concepts, Interface, Given a CSV text file how would write code to display the Second column Values. Other than java, which programming language you know to write this programme.
Interview Answer
1 Answer
▲
0
▼
The OOPS Concepts and Interface questions are pretty simple to answer. For the CSV file, a quick and dirty solution would be to use a file reader to read the file line by line, split on the comma and print out index 1 of the list resulting from the split. (index starts at 0) Easiest alternative to Java is python, which is pretty much exactly the same method. This is by no means the most efficient implementation
Viral Shah on
Add Answers or Comments
To comment on this, Sign In or Sign Up.