HR Question, Java Question, Asp.Net Question, C and C++ Question, SAP, Web Services, Window and XML Question

Introduction to Java Classes

    A class is nothing but a blueprint or a template for creating different objects which defines its properties and behaviors. Java class objects exhibit the properties and behaviors defined by its class. A class can contain fields and methods to describe the behavior of an object.
Methods are nothing but members of [...]

Java Access Specifiers
    The access to classes, constructors, methods and fields are regulated using access modifiers i.e. a class can control what information or data can be accessible by other classes. To take advantage of encapsulation, you should minimize access whenever possible.
Java provides a number  of access modifiers to help you set the level of access [...]

What is the difference between Abstract class and Interface
Or
When should you use an abstract class, when an interface, when both?
Or
What is similarities/difference between an Abstract class and Interface?
Or
What is the difference between interface and an abstract class?1. Abstract class is a class which contain one or more abstract methods, which has to be implemented by [...]

What restrictions are placed on method overloading?Two methods may not have the same name and argument list but different return types.
What is the difference between String and StringBuffer?
String objects are immutable whereas StringBuffer objects are not. StringBuffer unlike Strings support growable and modifiable strings.
Can a private method of a superclass be declared within a subclass?
Sure. [...]

                            

 Subscribe in a reader