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 Read more…

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 Read more…

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 Read more…

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 Read more…

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 Read more…

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 Read more…

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 . Read more…

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 Read more…

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 Read more…

Variable Definition A variable in Java, objects store their states in java variables. Variables are used as containers to hold values (int, long, string…) during the life cycle of an application. A variable provides us with named storage that our Read more…

Facebook