Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Friday, 25 November 2016

CONSTRUCTORS IN JAVA

Constructor is a special type of method in a class that is used initialise an object, that is a constructor is called automatically when an object of a class is created.A constructor is mainly used to initiallise the values to the variables in the functions.
The constructor has some special  properties that are:
  •     Constructor cannot have any return type ,not even void.
  • The name of the constructor should be same as the class name.

The most common types of constructors in Java programming are:
Default constructor and
Parameterised constructor

Tuesday, 22 November 2016

METHOD OVERLOADING IN JAVA

When a Java Program contains more than one method with same name ,but with different number and type of parameters ,then it is said to be overloaded .
Suppose we have a one function with name sum that is sum(),the the sum function can be overloaded by using different number and type of

Monday, 21 November 2016

Just In Time (JIT) Compilation in JVM

The Just In Time (JIT) compilation in Java is essentially a process that improves the performance of Java applications at run time. JIT compiler is a component of Java Runtime Environment (JRE) and is enabled by default. JIT is a type of dynamic compilation whereas javac is static compilation. With static compilers, the input code is interpreted once. Unless you make changes to your original source code and recompile the code, the output would result in the

ARCHITECTURE OF JAVA LANGUAGE

Compilation and Interpretation :
Java is both a compiled and interpreted language.Firstly Java Compiler comes into picture and converts the Java Source Code into a byte code that can be executed on any platform.Finally Java Virtual Machine also called as JVM comes into picture and

Saturday, 19 November 2016

JAVA BUZZWORDS

Features of Java is also called as Java Buzzwords.There are some most important functions of java which are given below:
Simple :
Java is very simple and easy to understandable language,The reason we say Java is simple is that it is based on  C++.Also the complex features like pointers are not present in Java which makes it simple and hence easy to understand .Here Java Garbage Collector performs the function of Destructor.

Friday, 18 November 2016

PLATFORM INDEPENDENCY FEATURE IN JAVA

Platform independence means that the program written on one system or platform can be executed on any other platform.The birth of object oriented programming took place with the concept of encapsulation which means to wrap up data and functions together.

DATA TYPES IN JAVA

The data type of a variable is an attribute that tells what kind of data that a value can have.
Java programming supports eight primitive types under the following four categories which are as under:

  1. Integers:The datatype integer is used to store the numbers other than real point numbers.
                  Under integer sub types are:                 
      • byte: The size of byte is 1 byte.
      • int:   The size of int is 4 bytes
      • long: The size of long is 8 bytes.
      • short:The size of short is 2 bytes.     

Wednesday, 16 November 2016

EXECUTION OF JAVA PROGRAM

Execution of Java program can take place in two ways that are as follows:

  • Static Loading and
  • Dynamic Loading
In the process of Static Loading the block of code is loaded into the memory before it is executed that is if the code is loaded into the RAM (Random Access Memory).the code may or may not get executed.The process of static loading takes place in execution of Structural programming languages like C programming language which follows top down approach.


while on the other hand in Dynamic loading the block of code is loaded into the memory only when it needs to be executed.Java program execution follows Dynamic Loading.
The following steps are followed while executing Java program:

KEYWORDS AND IDENTIFIERS IN JAVA

The keywords of any programming language identifies that programming language.In a Java Program there can be any number of keywords and each keyword has its own meaning .Keywords are the reserve words that cannot be used as variable names or identifiers.These are the special words that were designed at the time of development of Java Programming language.

Friday, 11 November 2016

Introduction to java Programming

Java is one of the programming language or technology used for developing distributed applications by making use of client/server architecture.Java language developed at Sun Microsystems in the year 1990 under the guidance of James Goshling and others
Originally Sun Microsystems is one of the academic

Java

Welcome to Java Tutorials