Interview Prospective Question and Answer using Java 7 and Java 8
DWP SYSTEM TEST QUESTIONS:
Create a list of 10 employees with name,id,sal as parameters. Sort the list
depending on the employee's salary.
Create a table in jsp page with name,age,date of birth,gender,martial status,phone
number etc and show that details into another jsp by using servlet.
Read the date from [Link] file and write the data into [Link] file but skip
the fifth line.
Select the data from data base Employee(id,name,sal) and write into [Link]
file.
Write a simple java class to calculate the age of a person where input is date of
birth.
DWP TECHNICAL ROUND-I QUESTIONS:
1) Tell me about your academic education.
2) What projects you have done?Explain.
3) What is difference between delete and truncate.
4) What is Collections framework.
5) What is the difference between array list and linked list.
6) How the flow is moving from jsp to servlet.
7) What is servlet.
DWP TECHNICAL ROUND-II QUESTIONS:
Introduce about yourself.
What projects you have done?Explain.
What concepts you know is J2EE?
What is the difference between Http Servlet and Generic Servlet.
What is servlet life cycle.
When the object will be destroyed
What are struts.
What is servlet scope.
Spoors Technologys:
[Link] a pyramid program.
[Link] a program to read 5 characters from user and print the characters in
reverse order.
[Link] a program if give the numbers the output will be generated in the following
way
int number[]={80,45,65,80,45,45};
output:
80 2
45 3
65 1
logic matters:
system test qns:
[Link] a program to read the sentence from the user and if sentence is like(Roopa
mam taught java very well vaman sir taught communications classes very well taught
very very) then generate output in the following way
output:
taught 3
very 4
well 2
[Link] a program to arrange the string in sorting order
if given string ranjith roopa vaman prashanth
output:
ranjith
roopa
prashanth
vaman
Technical:
[Link] concept
[Link]
[Link] join Quary with example
4. Total collections
[Link]& collection difference
[Link] reverse program
7 servlets flow
[Link] Explanation
[Link] objects in jsp what is the use of each one
Co Make It Technical qns:
Technical:
1. Tell About Your Self
2. What U done So Far
3. Explain About java project
[Link] about inheritance
[Link] polymorphism
[Link] encapsulation
[Link] about Abstractiion
[Link] about Static?
[Link] about final?
[Link] we can use final keyword and what are the limitations and advantages?
[Link] we can use static key word and what are the limitations and advantages?
12. method over loading
[Link] overridding?
[Link] is difference between run time polymorphism and run time?
[Link] is difference between compile time polymorphism and compile time?
16. what is servlet?
[Link] is jsp?
[Link] is difference between jsp and servlet?
[Link] are keywords?
[Link] are access specifiers?
[Link] series ?
[Link] program with using methods?
[Link] and decrement?
[Link] is String?
25 write a program to copy data from ([Link]) file and store in a Table
(Employ) Stored in DB?
[Link] the about program in System?
[Link] Servlet Context?
[Link] Servlet Config?
[Link] About Struts?
[Link] about Flow of Struts?
[Link] is Mvc?
Manager Round?
1. Introduce U r self?
[Link] U r from?
3. What is JVM?
[Link] is JRE?
[Link] is JDK?
[Link] is Difference Between JRE JDK JVM?
[Link] u find that JAva Exist in System?
[Link] you find Version of java?
[Link] is difference between javac and java
[Link] is MVC?
[Link] is difference between web server and app server?
[Link] is database?
[Link] flow of servlets?
[Link] u get angry?
[Link] will u do if u got angry?
[Link] or family?
[Link] will u do if u r frnds use in their needs?
[Link] many hours will u do programs in day?
[Link] u will see u r self after 3 years?
[Link] questions that u need to ask me?
Assignment:
1 Design Application for Library Management System?
Viranchi Technical Written Test Qns:
1-->
Class Base
{
public String final FOO = �foo�;
}
class Simple extends class Base
{
public string final FOO = �type�;
}
class A
{
public static void main(String ar[])
{
Base b = new Base();
Simple s = new Simple();
[Link]([Link]);
[Link]([Link]);
[Link]([Link];
[Link]([Link]);
[Link](((Base)s).FOO);
}
}
2-->
which is true?
a) x extends y : x is a class; y is a interface
b) x extends y : x is a Interface; y is a interface
c) x extends y : x is a interface; y is a class
d) x extends y : x is a class; y is a class
3-->
class Example
{
public static void main(String ar[])
{
Hashset hs = new HashSet();
[Link](�WABH�);
[Link](�WAXX�);
String s1=new String(�WABH�);
String s2=new String(�WAXX�);
[Link](s1);
[Link](s2);
[Link](hs);
4-->
class ArrayLists
{
public static void main(String ar[])
{
ArrayList al = new ArrayList();
[Link](�AAaA�);
[Link](�AaAA�);
[Link](�AaA�);
[Link](�aAA�);
[Link]();
[Link](al);
5-->
class ArrayLists
{
public static void main(String ar[])
{
ArrayList al = new ArrayList();
[Link](�1�);
[Link](�5�);
[Link](�3�);
[Link]();
[Link](�2�);
[Link]();
[Link](al);
6-->
final abstract class A
{
public abstract show()
{
[Link](A1);
[Link](A2);
[Link](A3);
}
}
class B extends class A
{
public abstract show()
{
[Link](B1);
[Link](B2);
[Link](B3);
}
}
class Example
{
public static void main(String ar[])
{
A a=new B();
[Link]();
}
}
7-->
class A
{
public static A()
{
a[0]=10;
}
private static void main(String ar[])
{
A a = new A();
a[0]=1;
a[2]=2;
[Link](a[0]);
}
8-->
class A
{
private static A()
{
a[0]=10;
}
public static void main(String ar[])
{
A a = new A();
a[0]=1;
a[2]=2;
[Link](a[0]);
}
9-->
class Threads
{
public void show()
{
[Link](�running�);
}
public static void main(String ar[])
{
Thread t = new Thread(new Threads());
[Link]();
[Link]();
[Link]();
}
}
10-->
class A implements Runnable
{
public static display()
try{
[Link](�in try�);
}
catch(Exception e)
{
[Link](�In catch�);
}
finally()
{
[Link](�in final�);
}
public static void main(String ar[])
{
A a = new A();
[Link]();
}
11-->
class Apply
{
int count;
Apply()
{
count++;
}
public static void main(String ar[])
{
Apply a = new Apply();
for(i=0;i<100;i++)
{
if(count==5)
{
}
create a object
}
}
12-->
class A
{
public void show()
{
[Link](�in show method�);
}
public static void main(String ar[])
{
[Link]([Link]());
}
13-->
class Enum
{
ONE,TWO,THREE;
}
a)ONE==ONE and [Link](ONE) are true
b) ONE<TWO and [Link](TWO) ahows ONE less than TWO are true
c) Raise Exception
d) �
Viranchi Technical Interview Qns:
// Technical Questions asked in second round //
->Html
->Tags
->Uses of tags
->Constructors
->Extends
->Class path
->Jre
->Jvm
->uses of Jvm
->Jdk
->Explain Jdk
->How to complile a java file
->Compiler
->Interpreter
->Can we declare final for a class
->Why..?
->Collection Frame work
->Arraylist
->Duplicates possible in Arraylist
->[Link]()
->Abstract class
->Different types of methods
->Impliments
->Interfaces
->Sorting techniques
->Bubble sort
->Sort an array
->ArrayIndexOutofBound
LikeShow more reactionsCommentShare