Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
Antivirus Faqs_Questions_And_Answers Software Tips Faqs_Questions_And_Answers ERP Faqs_Questions_And_Answers Internet Faqs_Questions_And_Answers Spoken English Faqs_Questions_And_Answers Web Designing Faqs_Questions_And_Answers SEO Tips Faqs_Questions_And_Answers Hacking
Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
SAP Faqs
C Faqs        C++ Faqs        Java Faqs        J2ee Faqs        Springs Faqs        Hibernate Faqs        Web sphere Faqs        Web Logic Server Faqs   
WordPress        Siebel Faqs        Shell Scripting Faqs        Perl Scripting Faqs        Open Source        Data Ware Housing Faqs        Joomla Faqs
Ajax        Oracle Apps Faqs        Testing Tools Faqs        Mainframes Faqs        Tibco Faqs        PHP Faqs        .Net Faqs       Operating System
 
Custom Search
RMI Interview Questions
EJB Interview Questions
JSP Interview Questions
JMS Interview Questions
JDBC Interview Questions
OOPS Interview Questions
Servlet Interview Questions
Applets Interview Questions
Awt Swing Interview Questions
Java Threads Interview Questions
Architectures of Java Faqs
Java Lang Package Faqs
Architectures of Java Faqs
Java Garbage Collection Faqs
Java Exception Handling Faqs
Core Java and Advanced Java
JAVA questions and answers
21 What is the Locale class?
Ans: The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. 
Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap.
Example of interfaces: Collection, Set, List and Map.
22 In System.out.println(), what is System, out and println?
Ans:

System is a predefined final class, out is a PrintStream object and println is a built-in overloaded method in the out object.

23 What is the difference between a while statement and a do statement?
Ans:

A while statement (pre test) checks at the beginning of a loop to see whether the next loop iteration should occur. A do while statement (post test) checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the loop body at least once.

24 What is a native method?
Ans:

A native method is a method that is implemented in a language other than Java.

25 What is Collection API?
Ans:

The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. 
Example of classes: HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap.
Example of interfaces: Collection, Set, List and Map.

26 Iterator a Class or Interface? What is its use?
Ans: Iterator is an interface which is used to step through the elements of a Collection.
27 How to define an Abstract class?
Ans:

A class containing abstract method is called Abstract class. An Abstract class can't be instantiated. 
Example of Abstract class:
abstract class testAbstractClass { 
    protected String myString; 
    public String getMyString() { 
        return myString; 
        } 
    public abstract string anyAbstractFunction();
}

28 How to define an Interface?
Ans:

In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface.
Emaple of Interface:

public interface sampleInterface {
    public void functionOne();

    public long CONSTANT_ONE = 1000;
}

29 Explain the user defined Exceptions?
Ans:

There are three main principals of oops which are called Polymorphism, Inheritance and Encapsulation.

30 Describe the principles of OOPS ?
Ans:

There are three main principals of oops which are called Polymorphism, Inheritance and Encapsulation.

Page :    1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Top

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player