Java J2EE Interview Questions
Questions Answers Views Company eMail

can any body body expalin best definitions & best real time exaples for opps concepts.

Accel,

1837

What is map and hashmap? also tell the difference.

1 3584

Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

3 4249

you are to choose between two procedures,both of which copute the minimum value in an array of integers.one procedure returns the smallest integer if its array argument is empty. the other requires a nonempty array.which procedure should you choose and why?

2163

How to add new JTabbed pane?

1 3871

give the syntax of doGet() and doPost()?

2 22975

i want test pattern of zylog company and some examples also

2294

1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?

RBS,

2 5939

2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

RBS, TCS,

1829

3) Suppose you are a very rich person, having 50 rooms and you have lost the key for one of the room's. How effectively you can find this key? (Qs2 and Qs3 are related)

RBS,

3 7782

Suppose there is a System A which gives some output. This output is used as input by system B. The rate at which System A produces is faster than the rate at which system B consumes it. How can you improve this?

RBS,

1 5089

Suppose there is an Online shopping cart application having different objects like Cart, SelectionItem, Billing, COnfiguration, Authentication, Authorization, PersonalDetails etc. Out of this which one can be made a singleton pattern and why?

RBS,

2 9811

What is Co-Variant return type in method overriding?

RBS,

1 5088

7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?

CSC, Nagarro, RBS,

4 7572

Can an abstract class have a constructor?

RBS, Wipro,

1 8826


Un-Answered Questions { Java J2EE }

What are the main components of a class in java?

488


Describe responsibilities of Activator?

1673


What is defeult result type?

625


What are the application of stack?

498


What is printwriter in java?

513






When should you use a spring boot? : Spring Boot

170


What is jms queue in weblogic?

474


What do you mean by Function Overloading in java?

624


What is finalize() function in java?

561


Explain the access modifiers for a class, method and variables?

649


What is the difference between ojdbc6 and ojdbc7?

468


What is a get method?

530


What do you mean by inner beans?

146


Why hibernate came into existence?

145


What is persist in hibernate?

150