Find jobs | Company-wise jobs
Jobseekers | Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Career services Resume services Interview Q&A Articles Oracle SQL Server NET Java Soft Skills CV GD Work from home Books store
Interview questions
Java interview part 1
Java interview part 2
Java interview part 3
Java interview part 4
Java interview part 5
Java FAQs
Java objects, classes & methods
Java operator | Java variables
Java overloading and overriding
Java abstract classes
Java data types | Java arrays
Java exception | Java events
Java virtual machine
Java input and output
Java URL connections
Java sockets | JNDI
Java applets | Java AWT
Java drawing AWT components
Core java | JDBC | JSP | EJB
J2EE | JNI | Servlets | Struts
Java threading | J2ME | JMS
Java web services | RMI
Internationalization | JavaScript
EJB Architecture | Spring
Java Transaction API – JTA | JBOSS
Java transaction services, JTS interview
Java GUI Framework interview
SWT/JFace interview
MVC and Jface | JavaServer Faces
Hibernate interview | JAAS
JavaMail interview | Tomcat
MIDP interview
Weblogic interview
Ant interview
Websphere interview
Ruby interview
jQuery interview
Aspect Oriented Programming, AOP
Java design patterns
 
ASP.NET | ADO.NET | AJAX
C#.NET | VB.NET | PHP
NET Remoting | NET Interview
  
C | C++ | Java | Oops
Data Structure | OS
   
Database concepts | Oracle
SQL Server | Biztalk | Sharepoint
Notification services
Reporting Services
Service-oriented architecture
Data warehousing | MySQL
  
Project Management 
Linux | Testing | Networking
Software engineering 
Microsoft solution framework 
  
UML | XML | HTML | SOAP 
CSS | VBScript  | Web Services
   
CV Cover letter | Interview 
HR | Soft skills | GD 
Working from Home 
Tutorial
ASP.NET | VB.NET | C#.NET     
Remoting.NET | Web service
Remoting overview | ADO.NET
UML | Sql server 
More links
JavaServer Faces 
OpenCms Application Overview 
EJB 3 Entities 
Oracle Web RowSet 
Books on Java
Java EE 5 Development with NetBeans 6 
OpenCms 7 Development 
EJB 3 Developer Guide 
JDBC 4.0 and Oracle JDeveloper for J2EE Development 

Java interview questions

Java interview questions - part 1  

Next>>        Part2 | Part3 | Part4 | Part5

Java methods are virtual by default. Comment.

Latest answer: Java methods are virtual by default. The virtual methods are the methods of subclasses. They are invoked by a reference of their super class...................
Read answer

Explain with an example how a class implements an interface.

Latest answer: When a class implements an interface, it has to implement the methods defined inside that interface. This is enforced at build time by the compiler..........................
Read answer

Concrete class vs. Abstract class vs. Interface.

Latest answer: A concrete class has concrete methods, i.e., with code and other functionality. This class a may extend an abstract class or implements an interface....................
Read answer

How do I design a class so that it supports cloning?

Latest answer: The Cloneable should be implemented.
clone( ) should be overridden in which super.clone( ) is called...................
Read answer

Explain the complete syntax for using the Applet tag.

Latest answer: The <Applet> tag has the following attributes:
      Code: To specify the .class
      Width: To indicate the width of the applet window at first time loading.
      Height: To indicate the height of the applet window at first time loading..................
Read answer

Where should we put applet class files, and how to indicate their location using the Applet tag?

Latest answer: An applet class file may present in any of the folder. The .class file name along with its current path( in which this .html file is placed) is to be specified in the code attribute of <Applet> tag.................
Read answer

Go top

Explain the methods that control a Applet's on-screen appearance, update and paint.

Latest answer: To refresh a page in an applet window without flashing, the update() method is to be overridden. It clears the background of the component, before invoking paint()..................
Read answer

Explain how Java interacts with database. Give an example to explain it.

Latest answer: Java interacts with database using an API called Java Database Connectivity. JDBC is used to connect to the database, regardless the name of the database management software. Hence , we can say the JDBC is a cross-platform API..................
Read answer

How can we handle SQL exception in Java?

Latest answer: SQL Exception is associated with a failure of a SQL statement. This exception can be handled like an ordinary exception in a catch block..................
Read answer

What is DatabaseMetaData?

Latest answer: DatabaseMetaData provides comprehensive information about the database. This interface is implemented by the driver vendors to allow the user to obtain information about the tables of a relational database as a part of JDBC application...................
Read answer

What is ResultSetMetaData?

Latest answer: ResultSetMetaData is a class which provides information about a result set that is returned by an executeQuery() method..................
Read answer

Explain CacheRowset, JDBCRowset and WebRowset.

Latest answer: A CacheRowSet object is a container for rows, that ‘caches’ the rows in the memory..................
Read answer

What are the different types of locks in JDBC? Explain them

Latest answer: A lock is a preventive software mechanism that other users can not use the data resource..................
Read answer

Go top

How are Observer and Observable used?

Latest answer: All the objects which are the instances of the sub class Observable, maintains a list of observers..................
Read answer

What is synchronization and why is it important? Describe synchronization in respect to multithreading.

Latest answer: Synchronization is the process of allowing threads to execute one after another..................
Read answer

What is the difference between preemptive scheduling and time slicing?

Latest answer: Preemptive scheduling enables the highest priority task execution until waiting or dead states entered. It also executes, until a higher priority task enters..................
Read answer

What is a task's priority and how is it used in scheduling?

Latest answer: A task’s priority is an integer value. This value is used to identify the relative order of execution with respect to other tasks..................
Read answer

What is the difference between the Boolean & operator and the && operator?

Latest answer: A single ampersand is used to perform ‘bit-wise AND’ operation on integer arguments..................
Read answer

What is the advantage of the event-delegation model over the earlier event inheritance model?

Latest answer: Event-delegation model has two advantages over event-inheritance model..................
Read answer

Go top

What is the purpose of the wait (), notify (), and notifyAll() methods?

Latest answer: The wait() method makes the thread to halt, thus allowing other thread to perform..................
Read answer

What is the relationship between an event-listener interface and an event-adapter class?

Latest answer: An event-listener interface allows describing the methods which must be implemented by one of the event handler for a specific event..................
Read answer

What is the purpose of the enableEvents() method?

Latest answer: An event-listener interface allows describing the methods which must be implemented by one of the event handler for a specific event..................
Read answer

What is the difference between the File and RandomAccessFile classes?

Latest answer: The OS based file system services such as creating folders, files, verifying the permissions, changing file names etc., are provided by the java.io.File class..................
Read answer

What are synchronized methods and synchronized statements?

Latest answer: Synchronized methods are utilized to control the access to an object especially in multi threaded programming..................
Read answer

Explain Java class loaders? Explain dynamic class loading?

Latest answer: The classes are available to the JVM and are referenced by the name. After JVM starts, it introduces the classes into it..................
Read answer

Difference between an abstract class and an interface and when should you use them

Latest answer: An abstract has one or more abstract methods apart from concrete methods. All the abstract methods must be overridden by its subclasses..................
Read answer

Go top

What is the main difference between an ArrayList and a Vector? What is the main difference between Hashmap and Hashtable?

Latest answer: Differences between ArrayList and Vector:.................
Read answer

Explain the Java Collection framework? What are the benefits of the Java collection framework?

Latest answer: A collection is a set of heterogeneous objects. A framework makes the applications efficient, less hard coded, similar implementation for various.................
Read answer

What is the main difference between shallow cloning and deep cloning of objects?

Latest answer: Shallow cloning just allows cloning the object but not their internal parts..................
Read answer

What is the difference between final, finally and finalize() in Java?

Latest answer: final – a key word / access modifier to define constants..................
Read answer

What is type casting? Explain up casting vs down casting? When do you get ClassCastException?

Latest answer: The conversion of a given expression from one type to another type is referred as ‘type casting’..................
Read answer

What are different types of inner classes?

Latest answer: There are 4 types of inner classes - Member inner class, Local inner class, Static inner class and Anonymous inner class.................
Read answer

What are packages in Java?

Latest answer: As the size of a project grows larger, the manageability of the files in it becomes tedious.
Read answer ..............

Go top

What are Native methods in Java?

Latest answer: Java applications can call code written in C, C++, or assembler. This is sometimes done.................
Read answer   

What is Reflection API in Java?

Latest answer: The Reflection API allows Java code to examine classes and objects at run time...........  
Read answer

Explain Shallow and deep cloning.

Latest answer: Cloning of objects can be very useful if you use the prototype pattern or if you want to store an internal copy...............
Read answer   

Explain the impact of private constructor.

Latest answer: Private Constructors can't be access from any derived classes neither from another class...............
Read answer

What are static Initializers?

Latest answer: A static initializer block resembles a method with no name, no arguments, and no return type..............
Read answer

What is the purpose of the wait (), notify (), and notifyAll() methods?

Latest answer: notify(): Wakes up a single thread that is waiting on this object's monitor................
Read answer

What is the advantage of the event-delegation model over the earlier event inheritance model?

Latest answer: Event-delegation model allows a separation between a component's design and its use as it enables event handling to be handled by objects other than the ones that generate the events.......................
Read answer

What is the difference between the Boolean & operator and the && operator?

Latest answer: A & B
In this, both the operands A as well as B are evaluated and then ‘&’ is applied to them..................
Read answer

Go top

What is a task's priority and how is it used in scheduling?

Latest answer: A priority is an integer value...............
Read answer

What is the difference between preemptive scheduling and time slicing?

Latest answer: If a certain task is running and the scheduling method used is preemptive, and then if there is another task that has a higher priority than the executing task..................
Read answer

What is synchronization and why is it important? Describe synchronization in respect to multithreading.

Latest answer: Threads communicate by sharing access to fields and the objects................
Read answer

How are Observer and Observable used?

Latest answer: The observable class represents an observable object.
The object to be observed can be represented by sub-classing observable class.................
Read answer

What is ResultSetMetaData?

Latest answer: ResultSetMetaData is an object that gets information about the types and properties of the columns in a ResultSet object...............
Read answer

Explain CacheRowset, JDBCRowset and WebRowset.

Latest answer: JdbcRowSet is a connected type of rowset as it maintains a connection to the data source using a JDBC driver.................
Read answer

Next>>        Part2 | Part3 | Part4 | Part5

Go top

More java interview questions with answers

How do we allocate an array dynamically in java?
What is the purpose of the wait (), notify (), and notifyAll() methods?
Explain with example how to initialize an array of objects.
What is the difference between the Boolean & operator and the && operator?
Explain CacheRowset, JDBCRowset and WebRowset.
How and when can we cast from one class to another?
How to send to receive datagram packet?
What is the advantage of the event-delegation model over the earlier event inheritance model?
What is the difference between a field variable and a local variable?
When do we need to flush an output stream?
Explain the purpose of garbage collection that the JVM uses.
Explain how to read a line of input at a time.
How does Java handle integer overflows and underflows?
Explain the difference between Integer and int in java.
What is javap?
Explain the processes performed by java virtual machine, i.e. loading, linking, initialization.

 
More content
Java FAQ | Personal Interview
Earn promotion|Happy employee
Write a good CV | Cover Letter
Become boss's favorite | CV tips
Training and Development
Public relations
PM | CareerRide is hiring
Frequently Asked Questions
CV Writing
Testing
XML
.NET
AJAX
ASP.NET
VB.NET
C#.NET
NET Framework
OOPS in .NET
C++
Data warehousing
Sql Server
Core Java
JDBC
JMS
JSP
RMI
J2ME
EJB
MySQL
Linux
PHP
UML
ADO.NET
Net Architecture
Personal interview
Marketing
Mass communication
Java FAQs
Oracle FAQs
C#.NET FAQs
VB.NET FAQs
DOT.NET
Networking FAQs
MySQL FAQs
Copyright © 2008 - 2010 CareerRide.com. All rights reserved.