Thursday 25 April 2013

IBM Certified Associate Developer (Test – 255)


Rational Application Developer for WebSphere Software V6.0
Approximate no of questions: 55
Duration in minutes: 90
Format: Multiple Choice
Required Passing Score: 67% on actual test


Section 1 - Workbench Basics (15%) – 8/55
A.    Set Workbench preferences
B.    Work with perspectives and views
C.    Use the import and export wizards
D.    Use the Help feature to aid in development activities
E.     Use the Local History to compare and replace resources
F.     Manage workspaces

Section 2 - Java Development (24%) - 13/55
A.    Create Java projects packages, classes, and methods
B.    Manage the Java Build Path
C.    Use the Outline view
D.    Use the refactoring features
E.     Use the Java editor features such as content assist and code formatting
F.     Add and organize import declarations
G.    Use the Java search function
H.    Use the Task and Problems views
I.     Use the Hierarchy view
J.     Use the resource and project property dialogues

Section 3 - Web Development (20%) – 11/55
A.    Create dynamic and static Web projects
B.    Understand classpath and module dependencies
C.    Use Page Designer to add and modify HTML, JavaScript, and JSP content
D.    Configure Web project properties
E.     Understand the available JSF (JavaServer Faces) development tools
F.     Understand the available Struts development tools
G.    Create and configure Servlets

Section 4 - Databases (5%) – 3/55
A.    Create a database connection
B.    Use the SQL Statement wizard
C.    Sample contents of a database table

Section 5 - Running Applications (9%) – 5/55
A.    Use WebSphere Application Server V6 to run J2EE applications
B.    Create and configure data sources
C.    Add and remove projects from the server
D.    Run stand-alone Java applications

Section 6 - Debugging and Testing (18%) – 10/55
A.    Manage breakpoints
B.    Step through and examine Java code
C.    View variables and execute, display and inspect expressions
D.    Create and run code in Scrapbook page
E.     Perform JSP debugging
F.     Use step-by-step debugging 5
G.    Locate and view WebSphere application server logs
H.    Perform unit testing using JUnit

Section 7 - Packaging and Deployment (9%) – 5/55
A.    Create J2EE projects
B.    Import and export J2EE modules
C.    Create and locate resources in the appropriate location of the project hierarchy
D.    Work with Web and Application Deployment Descriptor Editors

Tuesday 6 November 2012

Java interviews questions topics



Difference between an Interface and an Abstract class: An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods. 
The purpose of garbage collection in Java, and when is it used:The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used.
Describe synchronization in respect to multithreading:With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.
Different way of using thread:The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.
Pass by reference and passby value:Pass By Reference means the passing the address itself rather than passing the value. Passby Value means passing a copy of the value to be passed.
HashMap and Map:Map is Interface and Hashmap is class that implements that.
Difference between HashMap and HashTable:The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.
Difference between Vector and ArrayList:Vector is synchronized whereas arraylist is not.
Difference between Swing and Awt:AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.
Difference between a constructor and a method:A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator.
A method is an ordinary member function of a class. It has its own name, a return type (which may be void), and is invoked using the dot operator.
Iterator:Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk through a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collection at the time the Iterator was obtained; generally it is not advisable to modify the collection itself while traversing an Iterator.
The significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers.public : Public class is visible in other packages, field is visible everywhere (class must be public too)
private : Private variables or methods may be used only by an instance of the same class that declares the variable or method, A private feature may only be accessed by the class that owns the feature.
protected : Is available to all classes in the same package and also available to all subclasses of the class that owns the protected feature.This access is provided even to subclasses that reside in a different package from the class that owns the protected feature.
default :What you get by default ie, without any access modifier (ie, public private or protected).It means that it is visible to all within a particular package.
Abstract class:Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract itself, and must be declared as such.
A class may be declared abstract even if it has no abstract methods. This prevents it from being instantiated.
Static in java:Static means one per class, not one for each object no matter how many instance of a class might exist. This means that you can use them without creating an instance of a class.Static methods are implicitly final, because overriding is done based on the type of the object, and static methods are attached to a class, not an object. A static method in a superclass can be shadowed by another static method in a subclass, as long as the original method was not declared final. However, you can't override a static method with a nonstatic method. In other words, you can't change a static method into an instance method in a subclass.