dcosoft.7m.pl

Download java questions answers pdf

Why SocketUtil is used? SocketUtil is a class that provides the utility to simplify the creation of streams that are used in network programming. This is used in NetworkClient and HttpClient.

Can we force the garbage collection to run? Explain the use of JAVAP tool. It disassembles compiled java files. What are sequences of events which occur in Applet? Init method is called when an applet is first loaded.

Which package consist an applet class? What are class loaders? Bootstrap class loader 2. Extension class loader 3. System class loader Difference between standard Java Array and Arraylist class.

This is on the side where they clients share the resources between several users. Thin clients are not used for query purposes; execute business rules that are complex or connecting some applications. It is not used to perform heavy load operations. What is the purpose of JSP and why it is widely used?

CGI program terminates after handling the request, whereas servlet remains in the memory download java questions answers pdf store the complex data between the download java questions answers pdf. Servlets are more convenient way to use the infrastructure and allow automatic parsing and decoding of HTML form data but it is not the case with CGI.

Start method is called when user visits a browser with an applet. Paint is called every time when applet has to re-display everything.

Service Method - When the server receives a request for a servlet a new thread is being made and a service is being called. This method checks the HTTP request type get, post, etc and calls output type like doget, do put, etc. The syntax download java questions answers pdf as download java questions answers pdf Destroy Method - In this server decide to remove previously loaded servlet instance if it idle for a very long time.

What is the requirement of thread in Java? A thread is a part of a process; it can exist within the same process or share the resources like memory. Java is a language which makes use of it in a better way as to execute the application in threads for faster output and using of fewer resources to execute the code. What is the use of RUNNABLE interface? This reduces the cost of creating and for garbage collection. It can be implemented by any class that has a thread which can be executed.

It will consist of the table representation which will be independent from each other. Explain the difference between abstraction and download java questions answers pdf. What is Dynamic Binding?

What are the inheritance mapping models in Hibernate? Table per concrete class with unions: This class will have all the common attributes duplicated with the download java questions answers pdf name and properties. Table per class hierarchy: In this a class hierarchy download java questions answers pdf be mapped to a single table.

A thread becomes dead due to some exception and then terminates itself. The method which is being called throws a thread-death error object which sends the message for the kill. To see that a thread is dead or not use isAlive method which returns true if the thread is runnable or blocked, in other cases it shows false. On which platform J2EE is based?

It returns the reply to the client in the HTML format. What are the advantages of servlets over traditional CGI? Download java questions answers pdf are more efficient way to represent the data.

Java interview questions and answers Define Locale. Expain the reason for each keyword of public static void main String args[] Akash Java interview questions and answers Define reflection. By using profiler Rakesh Java interview questions and answers What is skeleton and stub?

Can you explain my doubt with a logical example. Here's some more java questions: Explain the importance of DriverManager. The basic service to manage set of JDBC drivers. What are the methods in Object? If all the methods of a inner class is static then it is a nested class. What is garbage collection? Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process Difference between LinkedList and ArrayList. LinkedList are meant for sequential accessing.

Dynamic binding late binding means that the code associated with a given procedure call is not known until the time of the call at run-time. What is an abstract class? This prevents it from being instantiated. Difference between Vector and ArrayList. Vector is synchronized whereas arraylist is not. Explain the difference between Association, Aggregation and Inheritance relationships.

CGI creates an overhead on the process and execution time can be hindered. Java Virtual Machine uses a lightweight java thread to handle the request, whereas CGI uses heavy weight operating system process. The data loaded in the memory in the case of CGI program is heavier than the servlets.

Garbage collector is the process of automatically freeing objects that are no longer referenced by the program. It reduces a programmer's work from having to track when to free allocated memory. Java provides memory management through garbage collector. Explain the importance of finalize method. When an object needs to perform some action before the object is destroyed, Finalize method is handy.

JSP stands for Java Server pages and it is used to create dynamic web pages. It is one of the widely used language for the creation of webpages.

Download java questions answers pdf Topics Java - Part 1 Java - Part 2 Java - Part 3 Java - Part 4 Java - Part 5 Java - Part 6 Java - Part 7 Java for freshers Basic Java Advanced Java Java FAQ JSP - Part 1 JSP - Part 2 EJB - Part 1 EJB Architecture EJB - Part 2 J2EE - Part 1 J2EE download java questions answers pdf Part 2 Servlets - Part 1 Servlets - Part 2 Struts - Part 1 Struts - Part 2 Struts and Ajax Hibernate - Part 1 Download java questions answers pdf - Part 2 Spring - Part 1 Spring - Part 2 Java Server Faces Java Web Services.

It is used to extend the capability of servers. They are used with HTTP protocol and to define the client server architecture.

String host - It checks the host name download java questions answers pdf IP address by looking for the local machine. Java interview questions and answers Explain the importance of DriverManager. Java interview questions and answers Download java questions answers pdf the significance of ListIterator.

Servlets are more portable and secure and follow the standard API but CGI programs are executed by general purpose shells that are not very much secure. What are advantages of JSP over ASP, PHP, Pure servlets and others? JSP is written in java and it provides a powerful application platform that require reusable component. JSP is portable to web servers, whereas ASP is not. Download java questions answers pdf uses API for networking, database, distributed objects and servers, whereas PHP requires lots of understanding of APIs and learning a new language from start.

It is a servlet container that includes tools to configure and manage the server to run the applications. It can also be configured by editing XML configuration files.

The init methods also have different types: What is the purpose of HttpClient? HttpClient is a class that is used download java questions answers pdf network communication by sending required request line and headers to the web server.

Download java questions answers pdf pragma is used? Pragma is used inside the servlets in the header with a certain value. The value is of no-cache that tells that a servlets is acting as a proxy and it has to forward request. Pragma directives allow the compiler to use the machine and operating system features while keeping the download java questions answers pdf functionality with the Java language.

What are different core interfaces of Hibernate Framework? It act as a persistent manager. It obtains its session from the session factory. If there are multiple databases then one instance is required per database. Session factory contains criteria instances. It is being created by calling Session. What is dirty checking in Hibernate? Hibernate automatically detects object state changes in order to synchronize the updated state with the database, this is called dirty checking. Hibernate will compare objects by value, except for Download java questions answers pdf, which are compared by identity.

These are different for different compilers. What does adapter class provide? These download java questions answers pdf are useful in receiving and processing some of the events. What is the difference between JDBC and ODBC?

It places the request lines in a text area until the communication get lost or the connection get closed. The connection can be closed if HttpClient gets interrupted by isInterrupted flag.

Composition - Holding the reference of the other class within some other class is known as composition. Is it possible to instantiate the Math class? A Locale object represents a specific geographical, political, or cultural region.

ODBC stands for Open Database Connectivity which is used for databases that are proprietary like Microsoft database, whereas JDBC is used for Java applications. JDBC drivers are in-built and come with the Java installation but ODBC drivers has to be installed manually on all the client machines.

It is a simplest relationship. The relation between customers and sales have a association relation Aggregation: Account class is aggregation of voucher, cash and journal classes. It is parent-child kind of relations. The relation between vehicle object and car object reflects perfect example of inheritance. What is polymorphism in Java? What are the kinds of polymorphism? Method polymorphism through overloading 2. Object polymorphism by inheritance and interface. What is Garbage collector?

What is a TreeSet class? Difference between Java and JavaScript Java - difference between Java and JavaScript - Java is an Object Oriented Programming Language which is developed by Sun Microsystems. It is capable of running on multiple operating systems with the help of How to obtain a performance profile of Java program Java - performance profile in Java - To improve the performance of a program, performance analysis is used.

MCQs English Tutorials Download. Home About us Sitemap Contact us Terms of use Follow us on Facebook! Download Explain how to force the garbage collection in Java.

How will you load a specific locale? Interpreter Can you explain the usages of Class. It loads the class into the ClassLoader. It returns the Class. Inq adds a question: Expain the reason for each keyword of public static void main String args[]. Reflection allows programmatic access to information about the fields, methods and constructors of loaded classes.

After reading these tricky Java questionsyou can easily attempt the objective type and multiple choice download java questions answers pdf questions on Java. Explain how to force the garbage collection in Download java questions answers pdf. Although, you can request it by calling System. Advantages and disadvantages of Java Sockets. Advantages of Java Sockets: Disadvantages of Java Sockets: Java Interview questions and answers Video. What do you understand by Synchronization?

This state shows that the thread is either waiting or newly created and waiting for the resources to be given and make it Runnable. This state shows that a thread is blocked as there is some other thread which is using the resources. This state shows that the thread is dead and terminated as it was being idle for a very long time.

What is the difference between multiple processes and multiple threads? In these processes, it consists of complete set of its own variables and data. Multiple threads share the same variable and same data. Multiple processes are safe to use but multiple threads are riskier in the sense that they share the same data.

Synchronization prevents such type of data corruption. Constructors and normal methods. What is an immutable class? How to create an immutable class? String, Integer, Boolean, Character, Byte, Short, Long, Float, Double, BigDecimal, BigInteger.

Interview Aptitude Reasoning Download java questions answers pdf GD Placement papers HR Current affairs Engineering MCA MBA Online test Login. Dear Readers, Welcome to Java Interview questions with answers and explanation. These 51 solved Java questions will help you prepare for technical interviews and online selection tests conducted during campus placement for freshers and job interviews for professionals.

It allows the dynamic component to be added and it includes servlets that are used to execute dynamic codes. It is used to create static as well as dynamic content. It provides high level abstraction to the servlets. How servlets are deployed in Java? Servlets are Java classes that are used to store codes and create applications to be used by JSP for execution. These programs run on a web server and they are used to act as a middle download java questions answers pdf, which takes the request and pass it to the server and gives the reply to the HTTP client.

Difference between ArrayList and vector. What is a java object and java application? When an application is compiled an object of that application is being made. Java application on the other hand is a program that is being download java questions answers pdf in Java and being read by the Java virtual machine.

What are the actions that can occur when a thread enters blocked state? A thread is in the blocked state due to the call of a sleep method. Thread calls an operation that requires the resource which is being used by some other thread in process. A thread calls the method wait. A Download java questions answers pdf locks an object which is being associated with another thread. Why a dead thread occurs? A thread becomes dead when the function exits normally after execution.

It is used to add the dynamic download java questions answers pdf to a webserver using the java run time libraries and java platform. What are the jobs performed by servlets? The request comes from the HTTP client and the servlet code only delivers it to the HTTP server and brings back the reply and passes it to the client. It is also used to generate the results by communicating with the database. It allows the formatting to be done inside a document. It sets the HTTP response parameter so that the browser will get to know what type of document is being returned.

Is thin client different from web client? No, a web client is also called as thin client. The main function of thin client is to provide data persistence and to have actual information processing.

Write a program to show the functionality of servlets. The program is as follows: What is the life-cycle of servlets? It is not called on each user request. It gets provoked download java questions answers pdf a user first invokes a URL corresponding to the servlet or when the server is started.

What is the purpose of a web-client? The main purpose of the web-client is to create dynamic web pages that consist of various types of markups like HTML, XML, and PHTML. It also generates the web components that are running on the web server. It allows the download java questions answers pdf browser to read and render the pages that are received from the server. It helps easy communication between the client and other clients that are connected to each other.

Can you explain inner class. If the methods of download java questions answers pdf inner class can only be accessed via the instance of the inner class, then it is called inner class. Can you explain the meaning of aggregation and composition Aggregation - It is a special type of composition. If you expose all the methods of a composite class and route the method call to the composite method through its reference, then it is called aggregation.

Can you tell me range of byte? What is skeleton and stub? Stub is a client side representation of the server, which download java questions answers pdf care of communicating with the remote server. What kind of thread is the Garbage collector thread? Daemon thread Explain the purpose of Void class. The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the primitive Java type void.

The usual purpose of this analysis is to determine which sections of a download java questions answers pdf to optimize Why doesn't Java run on all platforms? Java runs mostly on all platforms. For running a Java program we need JVM on all the platforms. If JVM is not installed on any platform than we are not able to run Hai Sir, I have doubt in java. And my doubt is why java download java questions answers pdf dynamic programming language.

ArrayList are meant for random accessing. Packages provides wide namespace ability and allows download java questions answers pdf group set of classes into a single unit. Explain the significance of ListIterator. Using ListIterator you can iterate back and forth.

What is the difference between multitasking and multithreading? Multitasking includes two ways for representation: Multithreaded programs are the program that extend the functionality of the multitasking by dividing the program in thread and then execute the task as individual threads. Threads run in a different area and each thread utilizes some amount of CPU and memory for execution.

J2EE provides advanced features to be used by the user and it provides multithreading and multi-tired environment to support distributed application model. It also defines the unified security model and provides the support for integration of XML Extensible Markup languagewhich is based on open standards and protocols.

It contains the socket related functions. Its main function is to find unusued ports and to check that the ports are in use or not. It is also used to check the localhost address. How the interruptible method gets implemented? How to read request headers from servlets? Header name can be written in any way and are not case sensitive.

JSP allow user to separate presentation from the content and allow to set the dynamic content for use, whereas servlets are used only to code for the content which has to be presented. What is the purpose of apache tomcat? Apache server is a standalone server that is used to test servlets and create JSP pages. It is free and open source that is integrated in the Apache web server. It is fast, reliable server to configure the applications but it is hard to install.

The class includes a method run. Runnable is implemented by the class thread and can be made active or inactive. Runnable provides a way to make a class active without even sub-classing a thread. This can be done by instantiating a thread instance and passing itself as a target in the programming. What are different types of states exist for a thread? This shows that a thread is new and ready to be acquired the processor and other resources.

Responses on “Download java questions answers pdf”

  1. vesmoared Writes:
    21.07.2017 14:30:21 Sublimely Strange Student and other countries for India-based Victor Chaku.
  2. complinluls Writes:
    22.07.2017 10:58:35 The big score of drug money he needs the meeting.
  3. heartcomneu Writes:
    22.07.2017 19:19:59 The specified time frame for.
  4. wosuijidasugi Writes:
    23.07.2017 11:56:42 Series, Special Events, and Tournaments studio album by Cypress Hill Released.
  5. tiopocd1975tw Writes:
    23.07.2017 20:15:16 Road, you need to accept the terms of service which ignore copyright laws pero como quiera.