• Overloading

    November 11, 2014 No Comment

    Java Overloading Overloaded method gives you an option to use the same method name in a class but with different argument. Method overloading is a controversial language feature, especially in the context of Object Oriented languages, where its interaction with overriding may lead to confusing semantics. One of the main arguments against overloading is that […]

    Posted in: Java

  • Java Interface

    November 10, 2014 1 comment

    Interface Creating an Interface means defining a Contract. This Contract states what a class can do without forcing how it should do. Declaring an Interface Interface can be defined with Interface keyword. Java Interface Example

    Rules for Declaring Interface There are some rules that needs to be followed by Interface. All Interface methods are […]

    Posted in: Java

  • Static Keyword

    November 10, 2014 No Comment

    What is Static Static is a Non Access Modifier. Applicable to Static keyword can be applied on Method Variable Class nested within another Class Initialization Block Not Applicable to Static keyword can not be applied to Class (Not Nested) Constructor Interfaces Method Local Inner Class(Difference then nested class) Inner Class methods Instance Variables Local Variables […]

    Posted in: Java

  • this keyword

    November 10, 2014 No Comment

    What is this this is a keyword in Java. Which can be used inside method or constructor of class. It(this) works as a reference to current object whose method or constructor is being invoked. this keyword can be used to refer any member of current object from within an instance method or a constructor. this […]

    Posted in: Java

  • Constructors

    November 10, 2014 No Comment

    Constructors Constructors in Java can be seen as Methods in a Class. But there is a big difference between Constructors and Methods. These differences can be defined in terms of purpose, syntax and Invocation. Purpose of Constructor (Vs Method) Constructors have only one purpose in life and that is to create an Instance of a […]

    Posted in: Java

  • Java Class & Object

    November 10, 2014 No Comment

    Java Class & Object: Class Class is a template for creating objects which defines its state and behavior. A class contains field and method to define the state and behavior of its object. Syntax for Declaring Class:

    Class_Name Unique name for the class in a specific package. Super_Class_Name Name of the class which the […]

    Posted in: Java

  • Non Access Modifiers

    November 10, 2014 No Comment

    Non Access Modifiers Here in this article you will learn about Non Access Modifiers. Below mentioned are the Non Access Modifiers available in Java. Final Abstract Static Strictfp Native Synchronized Transient Final Non Access Modifiers Final modifiers are applicable to : Class Method Instance Variable Local Variable Method arguments Final Class : A class when […]

    Posted in: Java

  • Access modifiers

    November 10, 2014 No Comment

    Access modifiers Access modifiers help you set the level of access you want for your class, variables as well as methods. There are in all three access modifiers. But there exists a fourth one called the default access modifier . Default is an access control which will be set when one does not specify any […]

    Posted in: Java

  • Java Statement

    November 10, 2014 No Comment

    Types of Java Statement Control Statement Assignment Statement In this chapter we will discuss about control statements. Visit here for assignment statement topic.   Control Statements Conditional execution Looping Flow Control Statement   Types of Conditional Execution If Statement If – Else statement If- Else-if statement Switch Statement   If Statement If statement in java […]

    Posted in: Java

  • Java Operators

    November 8, 2014 No Comment

    Java Operators In this chapter we will learn about Operator Precedence and Operator Associativity. Operator Precedence Precedence decides which operator will be evaluated first in a case where more than one operators are present in the same calculation. Operator Precedence Table Operators Precedence(High to Low) postfix expr++ expr— unary ++expr —expr +expr –expr ~ ! multiplicative * / % additive […]

    Posted in: Java