Posts

Difference between cpp and java.

Image
Difference between c++ and java Difference between c++ and java C++ Java 1) C++ is platform-dependent. 1) Java is platform-independent. 2) C++ is mainly used for system programming. 3) Java is mainly used for application programming. It is widely used in Windows-based, web-based, enterprise, and mobile applications. 4) C++ was designed for systems and applications programming. It was an extension of the C programming language. 4) Java was designed and created as an interpreter for printing systems but later extended as a support network computing. 5) C++ supports multiple inheritance. 5) Java doesn't support multiple inheritance through class. It can be achieved by using interfaces in java. 6) C++ supports operator overloading. 6) Java doesn't support operator overloading. 7) C++ supports pointers. 7) Java supports pointer internally. we cannot declare expl

Features Of Java Programming Language.

Image
Features Of Java  Features Of Java Programming Language Simple Object Oriented  Compiler And Interpreter Platform Independent Secured Programming Language  Multithreaded  Ruble And Strong Programming Language  Distributed Support Exception Handling. Simple Java is a simple programming language all the syntax in java based on c and c++.  Java has removed many complicated features explicit pointers, operator overloading, etc.  There is no need to remove unreferenced objects because there is an automatic garbage collection in java. Object oriented      Java is an object oriented programming language. Is a methodology in which application program can be develop using classes and object so it is simplifies software development and maintenance by providing some rules. Basic concepts of OOPs are:  Class.  Object.  Inheritance.  Polymorphism.  Abstraction.  Encapsulation. Compiler And Interpreter       Java programming language has the fechar of both Compiler and Interpreter. Java source code

Features Of Java

Multithreaded      Java is a multithreaded programming language that can be run two or more than two tasks of one program simultaneous or concurrently the main advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area. Threads are important for multi-media, web applications, etc. Ruble And Strong       Java is strong programming language because it uses strong memory management. There is no pointers that avoid security problems. Java provides automatic garbage collection which runs on the Java Virtual Machine. which is destroy object which are not being used. Distributed      Java is distributed programming language which proved facilitates users to create distributed applications using ejb we are used for creating distributed applications. This feature of java makes us able to access files by calling the methods from any machine on the internet. Support Exception Handling      java programming language Support Exception Handling

What is the java programming language ?

Image
What is java programming language  What is the java programming language ?      Java : is a high level platform independent, object oriented and secure programming language used for to develop console based application, graphics application, web application, mobile application and gaming applications.      Java was developed by Sun Microsystems (which is now the subsidiary of Oracle) in the year 1995. James Gosling is known as the father of Java. Before Java, its name was Oak. Since Oak was already a registered company, so they was java developer team changed the name from Oak to Java. Java Program Examples class Display      {            public static void main ( String args [])          {                System . out . println ( "Welcome TO Java" );            }        }   Types of Java Application Web Applications. Mobile Applications. Enterprise Applications. Stand Alone Application. Java Editions Java SE (Java Standard Edition) Java EE (Java Enterprise Edition) Jav

Addition Of Two Numbers In Java

Image
Add Two Numbers in Java      Overview How to add two numbers in Java will show addition of given two numbers.      Scope of Article This article provides information about addition of two numbers in Java. Examples of different ways of summing are given. Uses the ( + )   operator to add two numbers. Let's see how we can add two numbers in Java. Method 1: Sum of two numbers      This is the simplest way to add two numbers in Java. We will initialize and declare the value in the program itself. Here no input value is taken from the user.  Example : class Main  {      public static void main (String[] args) {      int e1 , f2 , sum ;      e1 = 100 ;     // I nitialize       f2 = 200 ;      sum = e1 + f2 ; // Addition operation      System.out.println( " Addition of " +e1+ " + "+f2+" = " +sum);   }   } Output A ddition of 100 + 200 = 300      Explanation In the above program we have taken three vari

what is a operator in c ?

Image
what is a operator in c ?        Operator :- Operator Are Nothing But The Special Symbols That Perform Of Operation On Variable. Types Of Operators Arithmetic Operators. Relocation Operators. Logical Operators. Assignment Operators. Increment And Decrement Operators. Conditional Operators. Bitwise Operators. 1} Arithmetic Operators :-   Arithmetic Operators Are Used For To Perform Mathematical Operations On Variables.                                                                int a =  5 , b = 12 , c ; +    Addition C = a + b = 5 + 12 = 17 -    Subtraction         C = a - b = 5 - 12 = 7 *   Multiplication C = a * b = 5 * 12 = 60   /   Division C = a /  b = 5 / 12 =  0   %   Modulus C = a % b = 5 % 12 = 5 2} Relocation Operators :-   Relocation Operator Are Used For To Perform Relocation ( comparison ) Operations On Variables.  <   Less Than.  >   Greater Than.  < =   Less Than Or Equal.  > =   Greater Than Or Equal.  = =    Equal TO.   ! =     NOT Eq

C Programming Language Basic Programming Examples, C Programming Basics, C Programming Basics Program, C Programming Examples With Output.

Image
C Programming Examples With Output 1)     Wright A Program Enter A Two Numbers   Print Its Addition. #include<stdio.h> int main () {                         int a,   b,   c;                         printf("Enter A First Number =");                         scanf("%d",   &a);                         printf("Enter A Second Number =");                         scanf("%d",   &b);                         c = a+b;                         printf("Addition =%d",   c);                         return 0; } Output  Enter A First Number = 10 Enter A Second Number = 20 Addition = 30 2)     Wright A Program Enter Empolay Sallary,     Calculat Tax 10 % And Print Tax Amount And Total Salary. #include<stdio.h> int main () {                         float Sallary,     tax,     total;                         printf("Enter Empolay Sallary = ");                         scanf("%f",