Question 1: What is the three tier model?
Answer: It is the presentation, logic, backend
Question 2: Why do we have index table in the database?
Answer: Because the index table contain the information of the other tables. It will
be faster if we access the index table to find out what the other contain.
Question 3: Give an example of using JDBC access the database.
Answer:
try
{
Class.forName("register the driver");
Connection con = DriverManager.getConnection("url of db", "username","password");
Statement state = con.createStatement();
state.executeUpdate("create table testing(firstname varchar(20), lastname varchar(20))");
state.executeQuery("insert into testing values(’phu’,'huynh’)");
state.close();
con.close();
}
catch(Exception e)
{
System.out.println(e);
}
Question 4: What is the different of an Applet and a Java Application
Answer: The applet doesn’t have the main function
Question 5: How do we pass a reference parameter to a function in Java?
Answer: Even though Java doesn’t accept reference parameter, but we can
pass in the object for the parameter of the function.
For example in C++, we can do this:
void changeValue(int& a)
{
a++;
}
void main()
{
int b=2;
changeValue(b);
}
however in Java, we cannot do the same thing. So we can pass the
the int value into Integer object, and we pass this object into the
the function. And this function will change the object.

4 Comments on Java software engineering interview questions
there is no such thing as an index table in a database (at least not in a relational database); and index is an auxiliary structure that is used as an access method into a table. and furthermore, that has nothing to do with java.
Number 5’s answer is incorrect. Java’s Integer class is immutable; you can’t change the value of the int it contains. You’d have to write your own mutable integer class and use that instead.
Hello friends IF U Want really to get prepared refer this site.
i want software about home tv Functional Requirementshaving the following functional and non functional requirements.
• The system must use a Computer, a Digital Receiver (DR), a TV, and a Digital Camera (DC).
• The system must provide Services supported by DR: On, Off, Select_Sat, Load_Sat, Search_Prog, Display_Prog, Delete_prog, Skip_Prog, …
• The system must provide Services supported by SC: On, Off, Search_Prog, Normal_Display_Prog, Quick_Display_Prog, …
• The system must provide Services supported by TV: On, Off, Set_Colors, Set_Light, Set_Volume, …
Non functional requirements
• Use a relational Database for storing data
• Each TV may be connected to many DR, and many TV may be connected to one DR.
• Each TV may be connected to one DC, and one TV may be connected to one DC.
• Use a maximum parallel processes. The environment contains a centralized multiprocessors computer, Java and C++ compiler on Unix system.
• Implement with a maximum of components reuse
A. HTVS Requirements
1. Using the appropriated Rational Rose tool, propose the problem statement and requirements specification
2. Using the Rational Rose UML Use Cases Tool, define a Use Cases Diagram.
B. HTVS Analysis
3. Using the Rational Rose environment, define the Analysis Model (all objects in subsystems).
4. Using the Unified Modeling Language [UML], Define a Class Diagram
C. HTVS Design
5. Propose a Database model with a design block encapsulating its access for the WMSS.
6. Using UML State Diagram tool, define the State Diagram for the class Temperature
7. Using UML Sequence Diagram tool, define a Sequence Diagram for one Use Case Temperature
D. HTVS Implementing
8. Implement two classes, with C++/c#, Java, …,
E. HTVS Testing
9. Using Rational Rose testing tools, Test one of the implemented classes.