search topic
Monday, August 11, 2008
Java Networking Technical Questions 4 IMP interview questions
Java and networking interview questions
1. What is a JavaBean? (asked by Lifescan inc)
ANSWER: JavaBeans are reusable software components written in the Java programming language, designed to be manipulated visually by a software develpoment environment, like JBuilder or VisualAge for Java. They are similar to Microsoft’s ActiveX components, but designed to be platform-neutral, running anywhere there is a Java Virtual Machine (JVM).
2. What are the seven layers(OSI model) of networking? (asked by Caspio.com)
ANSWER: 1.Physical, 2.Data Link, 3.Network, 4.Transport, 5.Session, 6.Presentation and 7.Application Layers.
3. What are some advantages and disadvantages of Java Sockets? (asked by Arashsoft.com)
ANSWER:
Advantages of Java Sockets:
Sockets are flexible and sufficient. Efficient socket based programming can be easily implemented for general communications.
Sockets cause low network traffic. Unlike HTML forms and CGI scripts that generate and transfer whole web pages for each new request, Java applets can send only necessary updated information.
Disadvantages of Java Sockets:
Security restrictions are sometimes overbearing because a Java applet running in a Web browser is only able to establish connections to the machine where it came from, and to nowhere else on the network
Despite all of the useful and helpful Java features, Socket based communications allows only to send packets of raw data between applications. Both the client-side and server-side have to provide mechanisms to make the data useful in any way.
Since the data formats and protocols remain application specific, the re-use of socket based implementations is limited.
4. What is the difference between a NULL pointer and a void pointer? (asked by Lifescan inc)
ANSWER: A NULL pointer is a pointer of any type whose value is zero. A void pointer is a pointer to an object of an unknown type, and is guaranteed to have enough bits to hold a pointer to any object. A void pointer is not guaranteed to have enough bits to point to a function (though in general practice it does).
5. What is encapsulation technique? (asked by Microsoft)
ANSWER: Hiding data within the class and making it available only through the methods. This technique is used to protect your class against accidental changes to fields, which might leave the class in an inconsistent state.
Java Tutorials - Free Technical Questions 9 Large collection of Java interview questions
Large collection of Java interview questions
1.
What is the difference between an Abstract class and Interface ?
2.
What is user defined exception ?
3.
What do you know about the garbage collector ?
4.
What is the difference between C++ & Java ?
5.
Explain RMI Architecture?
6.
How do you communicate in between Applets & Servlets ?
7.
What is the use of Servlets ?
8.
What is JDBC? How do you connect to the Database ?
9.
In an HTML form I have a Button which makes us to open another page in 15 seconds. How will do you that ?
10.
What is the difference between Process and Threads ?
11.
What is the difference between RMI & Corba ?
12.
What are the services in RMI ?
13.
How will you initialize an Applet ?
14.
What is the order of method invocation in an Applet ?
15.
When is update method called ?
16.
How will you pass values from HTML page to the Servlet ?
17.
Have you ever used HashTable and Dictionary ?
18.
How will you communicate between two Applets ?
19.
What are statements in JAVA ?
20.
What is JAR file ?
21.
What is JNI ?
22.
What is the base class for all swing components ?
23.
What is JFC ?
24.
What is Difference between AWT and Swing ?
25.
Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times? Where 3 processes are started or 3 threads are started ?
26.
How does thread synchronization occurs inside a monitor ?
27.
How will you call an Applet using a Java Script function ?
28.
Is there any tag in HTML to upload and download files ?
29.
Why do you Canvas ?
30.
How can you push data from an Applet to Servlet ?
31.
What are 4 drivers available in JDBC ?
32.
How you can know about drivers and database information ?
33.
If you are truncated using JDBC, How can you know ..that how much data is truncated ?
34.
And What situation , each of the 4 drivers used ?
35.
How will you perform transaction using JDBC ?
36.
In RMI, server object first loaded into the memory and then the stub reference is sent to the client ? or whether a stub reference is directly sent to the client ?
37.
Suppose server object is not loaded into the memory, and the client request for it , what will happen?
38.
What is serialization ?
39.
Can you load the server object dynamically? If so, what are the major 3 steps involved in it ?
40.
What is difference RMI registry and OSAgent ?
41.
To a server method, the client wants to send a value 20, with this value exceeds to 20,. a message should be sent to the client ? What will you do for achieving for this ?
42.
What are the benefits of Swing over AWT ?
43.
Where the CardLayout is used ?
44.
What is the Layout for ToolBar ?
45.
What is the difference between Grid and GridbagLayout ?
46.
How will you add panel to a Frame ?
47.
What is the corresponding Layout for Card in Swing ?
48.
What is light weight component ?
49.
Can you run the product development on all operating systems ?
50.
What is the webserver used for running the Servlets ?
51.
What is Servlet API used for connecting database ?
52.
What is bean ? Where it can be used ?
53.
What is difference in between Java Class and Bean ?
54.
Can we send object using Sockets ?
55.
What is the RMI and Socket ?
56.
How to communicate 2 threads each other ?
57.
What are the files generated after using IDL to Java Compilet ?
More of our 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, free tutorials for java, oracle, c, c++, networking, web designing, windows 2000, vista, etc. questions. Keep Watching Previouspapers.blogspot.com for more stuff!