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
Programmer Analyst Java Developer Interview Questions
258 programmer analyst java developer interview questions shared by candidates
What is java?
Write code to return a sorted array of int, when passed in 2 sorted array of int to the method.
what is the output public class Barclays { static class A{ A(){ f(); } public void f(){ System.out.println("A ctor"); } } static class B extends A{ B(){ f(); } public void f(){ System.out.println("B ctor"); } } public static void main(String[] args) { B b = new B(); b.f(); A a = new A(); a.f(); } }
how are you? Have you ever worked
In first round having programs and aptitude. which is a optional type questions and then second round is technical round.final round is hr
package com.interview; public class Threading { int counter; class Mythread extends Thread{ @Override public void run(){ for(int i=0; i < 10000; i++) counter++; System.out.println("run = " + counter); } } public static void main(String[] args) throws InterruptedException { // TODO Auto-generated method stub Threading a = new Threading(); Mythread t1 = a.new Mythread(); t1.start(); t1.join(); System.out.println("" + a.counter); } }
what is jfc?
Is Hibernate Session Factory thread-safe?
1. Interface, Collection etc . Core Java
Viewing 1 - 10 interview questions