Tuesday, 4 February 2014

How to Redirect Visitors From Old Blog to New Blog.

       when I create a new Blog and you are traffic or visitor Problem Then Don't worry I will Solution.A Traffic/ visitor to your old blog to new blogs there are main way.Then visitor come with your Old blog to new blog .Your Mind so many Question Like This .How It is work..There are few steps Go To It.


Process of how to redirect traffic From old blog to new blog:


  • Go to your old blogger dashboard.
  • Click on Template > > HTML.
  • Add this below code just after the <head> Section.
  • <meta http-equiv="refresh" content="0;url=http://Studytomidnight.blogspot.com"/>
  • Change the Red color URL & give your New blog URL.
  • Now Save your Template.


Read More

How To create Blog In Blogger.com With Gmail Account

This is the best way To create Your Own Blog For Free hosting u will tack domain and free time u will write a post.there are many way to earn money from seating home and u make Home made billionaire from your time u will share your post,pics and videos from your blog and u will earn money from many way.


There Are Advantage Of Blogger.com To Create A blog.


  • Earn Money via Send a Post
  • It a Free Then No Hosting Fees Pay
  • To share your artical,post videos and pictures.
  • Unlimited Free space allow to share your videos and Pics.

How To create a Blog


  • Create a Gmail account
  • Then Go To blogger.com 
  • sign In Your Gmail Account.
  • Choose Your Profile.
  • And Go to Create a  New Blog (Left Side).
  • Now Give Your Blog Title.
  • choose Templet and Share Your Post.
Now Create your blog successfull..Enjoy The Blog.

Read More

Copy Constructor In java

Copy Constructor

 Copy constructor is a intialize one object from other object and generally we assignment Operator to invoked copy constructor.

It Intialize value from one object to another.one The object created from class then not possible to  use second time they are use with copy constructor.They inialize value from one object to copy to onother one.


Read More

which are The access Modifier In java?

Access modifier are properties of a class/method/veriable while access modifier are five types


  • Final
  • static
  • Synchronization
  • Abstract
  • Transient

    Final :


    • A java variable can be declared using the keyword final. Then the final variable can be assigned only once.
    • A variable that is declared as final and not initialized is called a blank final variable. A blank final variable forces the constructors to initialise it.
    • Java classes declared as final cannot be extended. Restricting inheritance!
    • Methods declared as final cannot be overridden. In methods private is equal to final, but in variables it is not.
    • Final parameters – values of the parameters cannot be changed after initialization. Do a small java exercise to find out the implications of final parameters in method overriding.
    • Java local classes can only reference local variables and parameters that are declared as final.
    • A visible advantage of declaring a java variable as static final is, the compiled java class results in faster performance.

    Read More

    Monday, 3 February 2014

    what is Polymorphism In Java?

    Polymorphism : 

    It is greek Word poly Means Many Morphism Means Forms Thats call Many Forms.


    "Same Class Name But Diffrent parameter call polymorphism"

    Example :



    There Are Two  Types Of Polymorphism

    1. Compile Time Polymorphism
    2. Run Time Polymorphism

    • Compile Time Polymorphism :                                                                     Define Multiple Method With Same Class Name but Diffrent Passing Parameter.


    •    Run Time Polymorphism :                                                                            If base class and derived class have member functions with same name and arguments. If you create an object of derived class and write code to access that member function then, the member function in derived class is only invoked.
    Read More

    Inheritance program With access Specifier In Java.

       An Access Specifier Is a main part of java program they are not posiblity of make program with out access specifier.


    There are Four access Specifier In Java.


    1. public
    2. private
    3. protected
    4. Default


    There Are six type of  inheritance of Java.

    1. Single Inheritance
    2. Multilevel  Inheritance
    3. Multipath  Inheritance
    4. Multipal  Inheritance
    5. Hybride Inheritance




    Read More

    Abstract Method In Java?

    Abstract:   


    An abstract is a return Type.It must be a extended or sub class.a abstract class contain static data.Any class with an abstract method is automatically abstract itself .


    Syntax : abstract class class_Name
                   {

                         // Body
                   }


    Rules :

    • Abstract classes are not Interface.
    • An abstract class must have an abstarct method.
    • Abstract classes can have constructors,member variables and normal methods.
    • Abstract class Never instatiated.
    • When you extend abstarct class with abstarct method,you must define the abstract method in the child class.
    Read More

    Friday, 31 January 2014

    Features of Android

    Because Android is open source and freely available to manufacturers for customization, there are no fixed hardware or software configurations.


    • Storage — Uses SQLite, a lightweight relational database, for data storage.
    • Messaging — Supports both SMS and MMS. Chapter 8 discusses messaging in more detail
    • Media support — Includes support for the following media: H.263, H.264 (in 3GP or MP4container), MPEG-4 SP, AMR, AMR-WB (in 3GP container), AAC, HE-AAC (in MP4 or3GP container), MP3, MIDI, Ogg Vorbis, WAV, JPEG, PNG, GIF, and BMP
    • Hardware support — Accelerometer Sensor, Camera, Digital Compass, Proximity Sensor,and GPS.
    • Multi-touch — Supports multi-touch screens.
    • Multi-tasking — Supports multi-tasking applications.
    • Flash support — Android 2.3 supports Flash 10.1.
    • Tethering — Supports sharing of Internet connections as a wired/wireless hotspot.


    Read More

    Version Of Android Os With Release Date?

    ANDROID VERSION RELEASE DATE CODENAME

    • 1.1                 9 February 2009
    • 1.5                 30 April 2009 Cupcake
    • 1.6                 15 September 2009 Donut
    • 2.0/2.1            26 October 2009 Eclair
    • 2.2                  20 May 2010 Froyo
    • 2.3                  6 December 2010 Gingerbread
    • 3.0/3.1/3.2      22 February 2011 Honeycomb
    • 4.0                  19 October 2011 Ice Cream Sandwich
    • 4.1.x               9 July 2012,Jelly Bean 
    • 4.2.x              13  November  2012 Jelly Bean

    Read More

    What Is Disructor?

    Destructor  : Desructor is member function which is destroy automatically when object is created.

    Destructor always must start with  ~ Key Sign.


    Syntax:  

                  class class_ Name       

                  {        

                        ~  constructor Name ( )  // Destructor    

                    };


            Example:

                               class A
                              {
                                    int i;

                                     public();

                                       ~  A();
                               }

                                         A : A();

                              {

                                       i=1;

                               }
    Read More

    What is Constructor?

    Constructor :  A constructor is a member function which is call automatically When Object is created.


    There Are Many Types Of constructor?
    • copy
    • Default 
    • Parameterized


    Syntax :  class class_name
                   {
                        constructor ( );     // Define constructor
                    };

    Example:

                               class A
                              {
                                    int i;

                                     public();

                                      A();
                               }
                                   A : A();
                              {
                                       i=1;
                               }


    Example of  Default Constructor :











    2) Second Example Of Constructor






    Read More

    Thursday, 30 January 2014

    What Is Data Types In Programing Langauge?

    Data Type: A Data Types Is Nothing But one Type of store location or Space in Memory  To lacate the variable in there Space.

    There Are Two Diffrent Types Of Data Types.




    byte:

    • Byte data type is an 8-bit signed two's complement integer.
    • Minimum value is -128 (-2^7)
    • Maximum value is 127 (inclusive)(2^7 -1)
    • Default value is 0
    • Byte data type is used to save space in large arrays, mainly in place of integers, since a byte is four times smaller than an int.
    • Example: byte a = 100 , byte b = -50

    char:

    • char data type is a single 16-bit Unicode character.
    • Minimum value is '\u0000' (or 0).
    • Maximum value is '\uffff' (or 65,535 inclusive).
    • Char data type is used to store any character.
    • Example: char letterA ='A'

    short:

    • Short data type is a 16-bit signed two's complement integer.
    • Minimum value is -32,768 (-2^15)
    • Maximum value is 32,767 (inclusive) (2^15 -1)
    • Short data type can also be used to save memory as byte data type. A short is 2 times smaller than an int
    • Default value is 0.
    • Example: short s = 10000, short r = -20000

    int:

    • Int data type is a 32-bit signed two's complement integer.
    • Minimum value is - 2,147,483,648.(-2^31)
    • Maximum value is 2,147,483,647(inclusive).(2^31 -1)
    • Int is generally used as the default data type for integral values unless there is a concern about memory.
    • The default value is 0.
    • Example: int a = 100000, int b = -200000

    long:

    • Long data type is a 64-bit signed two's complement integer.
    • Minimum value is -9,223,372,036,854,775,808.(-2^63)
    • Maximum value is 9,223,372,036,854,775,807 (inclusive). (2^63 -1)
    • This type is used when a wider range than int is needed.
    • Default value is 0L.
    • Example: long a = 100000L, int b = -200000L

    float:

    • Float data type is a single-precision 32-bit IEEE 754 floating point.
    • Float is mainly used to save memory in large arrays of floating point numbers.
    • Default value is 0.0f.
    • Float data type is never used for precise values such as currency.
    • Example: float f1 = 234.5f

    double:

    • double data type is a double-precision 64-bit IEEE 754 floating point.
    • This data type is generally used as the default data type for decimal values, generally the default choice.
    • Double data type should never be used for precise values such as currency.
    • Default value is 0.0d.
    • Example: double d1 = 123.4

    boolean:

    • boolean data type represents one bit of information.
    • There are only two possible values: true and false.
    • This data type is used for simple flags that track true/false conditions.
    • Default value is false.
    • Example: boolean one = true


    Read More

    How to Permently Delete My Blog From Blogger.com

    There are Step to use and your blog delete Perment.


    •  Sign in Blogger.com 
    • Then Select blog to u want to delete.
    • Then Go To Dashbord  Menu.
    • Then Go Setting. 
    • In the setting choose Other Categary.
    • Then Click On Delete Blog.


      Your Blog seccessfull Deleted.


    Few points to get use to delete..


    • You can restore your blog from 90 days from deleting .
    • All of your content will be secured ,safe,restore-able with 90 days of blogger blog deletion.
    • You cannot restore your blog after 90 day of blog deletion.
    • You will not able to use deleted blog Url for 90 days from the date of blog deletion. once your blog deletion period of 90 days finish Then you will be able to use your old domain for brand new Blog.


    Read More

    What Is Android?

    what is android operating system, about android


    • Android is a mobile operating system that is based on a modifi ed version of Linux.
    • It was originally developed by a startup of the same name, Android, Inc. In 2005.
    • It was originally developed by a startup of the same name, Android, Inc. In 2005.
    • Google purchased Android and took over its development work.

    • Google wanted Android to be open and free; hence, most of the Android code was released under the open source Apache License.
    • The main advantage of adopting Android is that it offers a unified approach to application development.
    • Developers need only develop for Android, and their applications should be able to run on numerous different devices, as long as the devices are powered using Android.

    Read More

    Access Specifier In c++ Or Java

    Defination :


    Access Specifiers (also Acess Modifier) Regular access to classes, fields and methods in Java.These Specifiers determine whether a field or method in a class, can be used or invoked by another method in another class or sub-class. Access Specifiers can be used to restrict access. Access Specifiers are an integral part of object-oriented programming.

    These access specifiers are used to set boundaries for availability of members of class be it data members or member functions

    Access specifiers in the program, are followed by a colon. You can use either one, two or all 3 specifiers in the same class to set different boundaries for different class members. They change the boundary for all the declarations that follow them.


    Syntax  :


    <access-specifier> <class-keyword> <class-name>


    Types Of Access Specifiers :


    we have four Access Specifiers.

    1. public
    2. private
    3. protected
    4. default(no specifier)





    Public:

    Public Specifiers achieves the highest level of accessibility. Classes, methods, and fields declared as public can be accessed from any class in the Java program, whether these classes are in the same package or in another package.

    Example :




    Private :


    Private Specifiers achieves the lowest level of accessibility.private methods and fields can only be accessed within the same class to which the methods and fields belong. private methods and fields are not visible within subclasses and are not inherited by subclasses. So, the private access specifier is opposite to the public access specifier. Using Private Specifier we can achieve encapsulation and hide data from the outside world.

    Example :


    Protected:

    Methods and fields declared as protected can only be accessed by the subclasses in other package or any class within the package of the protected members' class. The protected access specifier cannot be applied to class and interfaces.




    Default :


    When you don't set access specifier for the element, it will follow the default accessibility level. There is no default specifier keyword. Classes, variables, and methods can be default accessed.Using default specifier we can access class, method, or field which belongs to same package,but not from outside this package.

    Example :



    1. class Demo  
    2. {  
    3. int i; (Default)  
    4. }  











    Read More

    Inheritance In programing Langauge

    Inheritance


    "  Inheritance is the Process of creating a new class  from existing class.The old class is referred to as the base class and the new classes, which are inherited from the base class, are called derived classes "

    Types of Inheritance

    There are five different inheritances supported in C++:
    • (1)  Single
    • (2) Multilevel
    • (3) Hierarchical
    • (4) Multiple
    • (5) Hybrid
    • (6)Multi path




    Single Inheritance - If a class is derived from a single base class, it is called as single inheritance.


    Multiple Inheritance - If a class is derived from more than one base class, it is known as multiple inheritance.




    Multilevel Inheritance - The classes can also be derived from the classes that are already derived. This type of inheritance is called multilevel inheritance.



    Hierarchical Inheritance - If a number of classes are derived from a single base class, it is called as hierarchical inheritance.


    Example Of Inheritance :





    Read More

    Operator In C programing Langauge

     Operators In Programing langauge

    C operator is a symbol that is used to perform mathematical or logical manipulations.
    Built in C language operators is rich, and provides the following types of operators:
    • Arithmetic Operators +, -, *, /,
    • Increment and Decrement Operators ++, --
    • Relational Operators ==, !=, >, <, >=, <=
    • Logical Operators &&, ||, !
    • Bitwise Operators <<, >>, ~, &, |, ^
    • Assignment Operators =, +=, -=, *=, /=, %=, <<=, >>=, &=, ^=, |=
    • Misc Operators sizeof(), &, *, ? :





    Read More

    History Of C programming language



           C is a high-level structured oriented programming language, used in general purpose programming, developed by Dennis Ritchie at AT&T Bell labs, USA between 1969 and 1973.
    • In 1988, C was formalized by American National Standard Institute (ANSI)
    • C was invented to write UNIX operating system
    • C is a successor of B language
    • Linux OS, PHP and MySQL is written in C
    • C has been written in assembly language

    Uses of C language

    In the beginning C was used for developing system applications e.g. :
    • Database Systems
    • Language Interpreters
    • Compilers and Assemblers
    • Operating Systems
    • Network Drivers
    • Word Processors

    C has become very popular for various reasons

    • One of the early programming languages
    • Still the best programming language to learn quickly
    • C language is reliable, simple and easy to use
    • C language is a structured language
    • Modern programming concepts are based on C
    • It can be compiled on a variety of computer platforms
    • Universities preferred to add C programming in their courseware

    Features of C language

    • C is a robust language with rich set of built-in functions and operators.
    • Programs written in C are efficient and fast.
    • C is highly portable, programs once written in C can be run on another machines with minor or no modification.
    • C is basically a collection of C library functions, we can also create our own function and add it to the C library.
    Read More

    variable In Programing Langauge

    In C langauge Variables

    Variables is a memory locations in C programming language.
    • We use variables to store data in memory for later use, and that values can be change.
    • Values of the variables can be numeric or alphabetic.

    There are some rules on choosing variable names

    • Variable name can consist of Capital letters A-Z, lowercase letters a-z, digits 0-9, and the underscore character.
    • The first character must be a letter or underscore.
    • Blank spaces cannot be used in variable names.
    • Special characters like #, $ are not allowed.
    • C keywords can not be used as variable names.
    • Variable names are case sensitive.

    Variable Definition in C

    Syntax:
    type variable_name;

    type variable_name, variable_name, variable_name;


    Example:

    /* variable definition and initialization */
    int width, height=5;
    char letter='A';
    float age, area;
    double d;

    /* actual initialization */
    width = 10;
    age = 26.5;
    Read More

    C++ langauge Program Structure


    C++ langauge Program Structure






    • Documentation Section
    • Preprocessor  Statement
    • Global Declaration
    • The Main Function
    •  User Define Function

    Example

      include <Stdio.h>
      include<conio.h>
      
      void main( )
      {

           printf("Hello World");
         
             getch();

      }
    Read More

    Advantage Of Java programming language




    • Object Oriented : In Java, everything is an Object. Java can be easily extended since it is based on the Object model.
    • Platform independent : Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run.
    • Simple:Java is designed to be easy to learn. If you understand the basic concept of OOP Java would be easy to master.     
    • Secure: With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.
    • Portable:Being architectural-neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler in Java is written in ANSI C with a clean portability boundary which is a POSIX subset.
    • Robust:Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking.
    • Multithreaded: With Java's multithreaded feature it is possible to write programs that can do many tasks simultaneously. This design feature allows developers to construct smoothly running interactive applications.
    • Interpreted:Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid and analytical since the linking is an incremental and light weight process.
    • High Performance: With the use of Just-In-Time compilers, Java enables high performance.
    • Distributed:Java is designed for the distributed environment of the internet.
    • Dynamic: Java is considered to be more dynamic than C or C++ since it is designed to adapt to an evolving environment. Java programs can carry extensive amount of run-time information that can be used to verify and resolve accesses to objects on run-time.

    Read More

    History of java programming language.


                 


           James Gosling initiated the Java language project in June 1991 for use in one of his many set-top box projects. The language, initially called Oak after an oak tree that stood outside Gosling's office, also went by the name Green and ended up later being renamed as Java, from a list of random words.

    Sun released the first public implementation as Java 1.0 in 1995. It promised Write Once, Run Anywhere (WORA), providing no-cost run-times on popular platforms.

    On 13 November 2006, Sun released much of Java as free and open source software under the terms of the GNU General Public License (GPL).

    On 8 May 2007, Sun finished the process, making all of Java's core code free and open-source, aside from a small portion of code to which Sun did not hold the copyright.


    Read More

    Wednesday, 29 January 2014

    Class in Java.

         A class Is a more inporant  concept in java langauge such this is more important part.we will define the method, variable and property then belongs to class.in class we will define a variable,method and declare them properly to the structure of class we will define class defination,syntax and Example of class In simple langauge.

    Class :  A class Is a collection Of  Set Of  Method And Property.

    Syntax:   Class class Name
                   {
                              // Body Of a class;
                   };

    Example :

                      class Student
                      {
                                   int id;
                                   char Name;
                       };



    More about Classes

    1. Class name must start with an uppercase letter. If class name is made of more than one word, then first letter of each word must be in uppercase.
    2. Classes contain, data members and member functions, and the access of these data members and variable depends on the access specifiers.
    3. Class's member functions can be defined inside the class definition or outside the class definition.
    4. Class in C++ are similar to structures in C, the only difference being, class defaults to private access control, where as structure defaults to public.
    5. All the features of OOPS, revolve around classes in C++. Inheritance, Encapsulation, Abstraction etc.
    6. Objects of class holds separate copies of data members. We can create as many objects of a class as we need.
    7. Classes do posses more characteristics, like we can create abstract classes, immutable classes.
    Read More