Saturday, March 29, 2008

B.tech Freshers Technical Interview Java Software Questions 6

Java software engineering interview questions

1. What is the three tier model?
Answer: It is the presentation, logic, backend
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.
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);
}
4. What is the different of an Applet and a Java Application
Answer: The applet doesn?t have the main function
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.

More Helpful Placement Question Papers Resources: Free download online recent and current year solved placement question papers 2008 of leading companies in India and Abroad. See More Latest and previous expert, common, basic, important, advanced questions asked in technical interviews for 2007, 2008 january, february, march, april, may, june, july, august, september, october, november, decemberfor leading IT Companies in India, USA, UK, Norway, China. Reputed MNCs testing job interview questions for Wipro, Infosys, TCS, Satyam Computers, HCL, IBM, Cisco, Microsoft, Keane, Flextronics, Accenture, Cognizant, T Systems, SAP, Oracle, Texas Instruments, Quark, Patni Computer Systems, Mastek, BT, Dell, BPO, ITES companies, Software Companies. Freshers and on campus interview held in delhi, mumbai, bangalore, chennai, madurai, noida, gurgaon, chandigarh, mohali, pune, hyderabad, kolkata, thane, ahmedabad, etc. Recent, latest reasoning, multiple choice questions, verbal, non verbal, mathematics questions with solutions / solved / answer keys, booklet. GD topics for leading campus placement interview, placement drive, HR Interview Questions and answers, how to behave, Tips, preparation, most recently asked / important software testing interview, java, oracle, c, c++, networking, web designing, windows 2000, vista, etc. questions. Keep Watching Previouspapers.blogspot.com for more stuff!

No comments: