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 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 Faqs_Questions_And_Answers
Antivirus Faqs_Questions_And_Answers Data Bases Faqs_Questions_And_Answers ERP Faqs_Questions_And_Answers Internet Faqs_Questions_And_Answers Hacking Faqs_Questions_And_Answers Marketing Faqs_Questions_And_Answers Web Designing Faqs_Questions_And_Answers SEO Faqs_Questions_And_Answers Advertise with us
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 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 Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers Faqs_Questions_And_Answers
JAVA Jobs
Click here for Architectures of 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