Saturday, 8 December 2012
Sunday, 22 April 2012
What is the difference between an argument and a parameter?
While defining method, variables passed in the method are called parameters. While using those methods, values passed to those variables are called arguments.
What is Serialization?
Serialization is a marker interface. When an object has to be transformed over a network(typically through RMI or EJB) or persist the state of an object to a file, the Object class needs to implement Serializable interface. Implementing this interface will allow the object converted into byte stream and transfer over a network.
What is a Web Browser?
When you browse the Internet, you use a web browser. This is an application that runs off your local computer, connected to the Internet. It requests web pages from distant web servers, and translates the HTML programming language into the familiar web page that you read, with embedded pictures.
Well known Web browsers are Internet Explorer, Chrome, and Firefox.
What is a Webpage?
A web page or webpage is a document or information resource that is suitable for the World Wide Web and can be accessed through a web browser and displayed on a monitor or mobile device. This information is usually in HTML or XHTML format, and may provide navigation to other web pages via hypertext links. Web pages frequently subsume other resources such as style sheets, scripts and images into their final presentation.
Web pages may be retrieved from a local computer or from a remote web server. The web server may restrict access only to a private network, e.g. a corporate intranet, or it may publish pages on the World Wide Web. Web pages are requested and served from web servers using Hypertext Transfer Protocol (HTTP).
Web pages may consist of files of static text and other content stored within the web server’s file system (static web pages), or may be constructed by server-side software when they are requested (dynamic web pages). Client-side scripting can make web pages more responsive to user input once on the client browser.
Web pages may be retrieved from a local computer or from a remote web server. The web server may restrict access only to a private network, e.g. a corporate intranet, or it may publish pages on the World Wide Web. Web pages are requested and served from web servers using Hypertext Transfer Protocol (HTTP).
Web pages may consist of files of static text and other content stored within the web server’s file system (static web pages), or may be constructed by server-side software when they are requested (dynamic web pages). Client-side scripting can make web pages more responsive to user input once on the client browser.
What is the Difference Between Static and Dynamic Web Pages?
A static web page is one that has been written once, like a word processing document, and then saved onto the web server. It’s like a file. If you could access the web server at a file system level, move the file over to your computer, and then open it up locally in your web browser, it should look exactly the same as if you looked at it through the Internet. Any changes to a static web page need to be made manually, and then saved again.
A dynamic web page is created on the fly. It doesn’t actually exist on the web server until a web browser requests it. When a request is made, web server runs whatever program will create the web page. That program creates the page dynamically and returns it to the web server, which then passes it along to the web browser.
So the main difference between static and dynamic web pages is that static pages exist on the web server, while dynamic pages are created on the fly when a web browser requests them.
Explain Object creation process in Java?
Object creation is a 4 step process in Java
1. new operator allocates memory dynamically for the object
Syntax: Employee e = new Employee();
2. JVM gives default values to the instance variables of the objects.
3. A special method called constructor is executed.
4. new operator binds the objects to the reference variables.
1. new operator allocates memory dynamically for the object
Syntax: Employee e = new Employee();
2. JVM gives default values to the instance variables of the objects.
3. A special method called constructor is executed.
4. new operator binds the objects to the reference variables.
Subscribe to:
Comments (Atom)