Posts

Showing posts with the label java

Interface VS Abstract class

Difference  abstract class vs interface Abstract class 1)Abstract class can have both an abstract as well as concrete methods. 2) Multiple Inheritance is not supported in abstract class. 3) final, non-final, static , non-static variables are supported. 4) Abstract class declared using abstract keyword. 5) Abstract class can be inherited using extends keyword. 6) Abstract class can have any type of members like private, public.

JAVA FUNDAMENTAL

Image
JAVA FUNDAMENTAL

C++ vs Java

C++ vs Java There are many differences and similarities between the c++ language and java. . A list of top differences between C++ and Java are given below: C++ EXAMPLE File: main.cpp #include <iostream>    using   namespace  std;   int  main() {      cout <<  "Hello C++ Programming" ;       return  0;   }   JAVA EXAMPLE class  Simple{        public   static   void  main(String args[]){        System.out.println( "Hello Java" );       }   }  

HISTORY OF JAVA

History of java     Initially developed by James Gosling at sun sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995. In 1995, Time magazine called  Java one of the Ten Best Products of 1995 .    Java team members  initiated this project to develop a language for digital devices such as set-top boxes, televisions, etc. However, it was suited for internet programming. Later, Java technology was incorporated by Netscape.            The principles for creating Java programming were "Simple, Robust, Portable, Platform-independent, Secured, High Performance, Multithreaded, Architecture Neutral, Object-Oriented, Interpreted, and Dynamic". JAVA was developed by James Gosling , who is known as the father of Java, in 1995.  WHY NAME JAVA - According to James Gosling, "Java was one of the top choices along with  Silk ". Since Java was so unique, most of the team members preferred Jav...