user-avatar
Today is Saturday
January 28, 2012

March 24, 2011

What is the parseObject() method?

by admin — Categories: CertificationComments Off

The parseObject() method parses text from a string to produce a Number. The method starts the parsing process by parsing the text starting at the index given by pos. If parsing succeeds, then the index of pos is updated to the index after the last character used, and the parsed number is returned. The new pos can be used to indicate the starting point for the next call to this method. Following is the general format of the method:

parseObject public final Object parseObject(String source, ParsePosition pos)

Here, source is a String, part of which should be parsed, pos is a ParsePosition object with index and error index information as described above. This method throws NullPointerException if pos is null.
Download practice question and study guide for CX310-065 for exam.

Share

March 24, 2011

What is the format() method?

by admin — Categories: CertificationComments Off

The format() method belongs to the NumberFormat class. This method gives specialization of format. Following is the general format of the method:

public final String format(double number)

This method throws ArithmeticException if rounding is needed with rounding mode being set to RoundingMode.UNNECESSARY.
Best exam simulation Oracle CX310-065 download free trial.

Share

March 24, 2011

What is the parse() method?

by admin — Categories: CertificationComments Off

The parse() method parses the text from the beginning of the given string to produce a Number. The method may not use the entire text of the given string. Following is the general format of the method:

public Number parse(String source) throws ParseException

Here, source is a String whose beginning should be parsed and this method returns a Number parsed from the string. This method throws ParseException if the beginning of the specified string cannot be parsed.
Best exam simulation free download CX310-065

Share

March 24, 2011

What is the parse() method?

by admin — Categories: CertificationComments Off

The parse() method parses the text from the beginning of the given string to produce a Number. The method may not use the entire text of the given string. Following is the general format of the method:

public Number parse(String source) throws ParseException

Here, source is a String whose beginning should be parsed and this method returns a Number parsed from the string. This method throws ParseException if the beginning of the specified string cannot be parsed.
Pass OCP Java SE 6 Programmer exam

Share

March 23, 2011

What is NullPointerException?

by admin — Categories: CertificationComments Off

NullPointerException is thrown when an application attempts to use null in a case where an object is required. NullPointerException extends RuntimeException. This exception will be thrown when one of the following conditions is met:

  1. A null object of an instance method has been called.
  2. The field of a null object has been accessed or modified.
  3. The length of null in an array has been taken.
  4. The slots of null in an array have been accessed or modified.
  5. Null is thrown as if it were a Throwable value.

Share

March 22, 2011

What are the default and protected access modifiers?

by admin — Categories: CertificationComments Off

The default and protected access modifiers are identical modifiers with only one difference.

default: A default method or member can be accessed only by the class member that belongs to the same package. For example:

package book;
public class Outerclass
 {
   void test() //default access
     {
       System.out.println(“Outer Class”);
     }
 }

package book1;
import book.*;
class Innerclass
 {
   static public void main(String args[])
     {
       Outerclass oc= new Outerclass();
       oc.test(); // compilation error!
     }
 }

In the above example, there are two packages, book and book1. The package book has a class Outerclass and a method test, which has a default access level. The package book1 has a class Innerclass in which it declares an object of Outerclass. However, when it uses the test() method of the Outerclass, which has a default access level, it will generate a compile-time error No method matching test() found in class.

protected: If the protected modifier is used to define a member, any subclass of the class and its member can access the member through inheritance even if the subclass is in a different package. For example:

package book;
public class read
 {
   protected int r1=10;
 }

package book1;
import book.read;

class Doread extends read
 {
   public void test()
     {
       System.out.println(“The value of r1 is:” +r1);
     }
   }

In the above example, there are two packages, book and book1. The package book has a class read and a protected variable r1. The package book1 has a class Doread, which extends the class read. The compiler will easily access the variable r1 because it inherits the class read.
Click here to download GSSP-Java test study guide and practice question.
Download questions and guide CX310-019 for exam.

Share

March 22, 2011

What are the default and protected access modifiers?

by admin — Categories: CertificationComments Off

The default and protected access modifiers are identical modifiers with only one difference.

default: A default method or member can be accessed only by the class member that belongs to the same package. For example:

package book;
public class Outerclass
 {
   void test() //default access
     {
       System.out.println(“Outer Class”);
     }
 }

package book1;
import book.*;
class Innerclass
 {
   static public void main(String args[])
     {
       Outerclass oc= new Outerclass();
       oc.test(); // compilation error!
     }
 }

In the above example, there are two packages, book and book1. The package book has a class Outerclass and a method test, which has a default access level. The package book1 has a class Innerclass in which it declares an object of Outerclass. However, when it uses the test() method of the Outerclass, which has a default access level, it will generate a compile-time error No method matching test() found in class.

protected: If the protected modifier is used to define a member, any subclass of the class and its member can access the member through inheritance even if the subclass is in a different package. For example:

package book;
public class read
 {
   protected int r1=10;
 }

package book1;
import book.read;

class Doread extends read
 {
   public void test()
     {
       System.out.println(“The value of r1 is:” +r1);
     }
   }

In the above example, there are two packages, book and book1. The package book has a class read and a protected variable r1. The package book1 has a class Doread, which extends the class read. The compiler will easily access the variable r1 because it inherits the class read.
Best exam simulation free download GSSP-Java
Download free practice test for CX310-019 OCA Java SE 5/SE 6 exam.

Share

March 12, 2011

What is the HAVING clause?

by admin — Categories: CertificationComments Off

The HAVING clause sets conditions for the GROUP BY clause in a SELECT statement. It restricts the groups of rows on the basis of aggregate information. Only groups of rows that satisfy the conditions specified in the HAVING clause are displayed.

Share

March 3, 2011

¿Qué es un constructor?

by admin — Categories: CertificationComments Off
  • Conviértete actualización de Microsoft: Habilidades MCSD para MCPD Enterprise me VB.NET certificado.
    Share
  • March 2, 2011

    What is an interface?

    by admin — Categories: CertificationComments Off

    extends Super_interfaces: An interface can extend other interfaces in the same way as a class extends another class. The only difference between these two is that whereas a class is allowed to extend only one class, an interface can extend any number of interfaces. The extends keyword in an interface declaration tells the compiler that the interface extends the list of interfaces that follows the extends keyword.

    The interface body

    The interface body contains method declarations for all the methods included in the interface. A method declared within an interface does not have a body, i.e., the method declaration ends with a semicolon. This is because an interface does not provide implementations for the methods declared within it. Apart from method declarations, an interface contains constant declarations.

    All the constants defined in an interface are by default static and final. Therefore, there is no need to explicitly use these keywords to declare variables inside the interface body. All methods and variables in an interface are implicitly public if the interface is declared as public. It is also not necessary to declare the methods as abstract as well. The following example demonstrates how to define an interface:

    public interface MyInterface{
    void method1();
    int method2(int k);
    int x = 1;
    int y = 2; Click here to get free 70-568-CSHARP UPGRADE: MCPD C#.NET 3.5 Enterprise Application Developer Skills 1 study guide.
    }
    Get certified in first attempt download CX310-019 study guide
    free study material for CX310-055 OCP Java SE 5 Programmer exam.

    Share
    © 2012 SCJP 4 You All rights reserved - Wallow theme v0.46.4 by ([][]) TwoBeers - Powered by WordPress - Have fun!