Data types in the Java programming language are basically divided into two groups – primitive data types and object references. A primitive data type is a basic building block and has full built-in support. Many other languages also support composite data types, which are build on a combination of primitive data types and may or may not have built-in support. Java Primitive Data Types Let’s discuss the available primitive data types in Java. There are 8 primitive data types in Java, which are Boolean, Char, Byte, Short, Int, Long, Float, Read More
A Java Servlet is basically used to extend the functionality of a server. A Servlet is a Java programming language class. It is used commonly to expand the functionality of an application hosted on web server. A Java Servlet adheres to the Java Servlet API in Java EE. Java Servlet API is a protocol that defines how a server request is handled by a Java class. A Servlet is majorly used over the HTTP protocol; however it is also equipped to communicate over any client-server protocol. A programmer can create Read More
A Java compiler is a program which converts Java source code into Java bytecode. A basic Java compiler is included as part of the JDK (Java Development Kit). This Java compiler is called “javac”.
C++ supports pointers; Java does not (Java does have object references) C++ supports mutiple inheritance directly; Java supports multiple inheritance only through interfaces C++ supports operator overloading; Java does not C++ supports global variables; Java does not (sort of) C++ supports #define; Java does not C++ supports typedef; Java does not C++ supports enum; Java does not C++ supports unions; Java does not C++ supports structs; Java does not C++ supports constants; Java supports final variables
Java Operator Operator Description [ ] Array index () Method call . Member access ++ Prefix or postfix increment — Prefix or postfix decrement + – Unary plus, minus ~ Bitwise NOT ! Boolean (logical) NOT (type) Type cast new Object creation * / % Multiplication, division, remainder + – Addition, subtraction + String concatenation << Signed bit shift left to right >> Signed bit shift right to left >>> Unsigned bit shift right to left < <= Less than, less than or equal to > >= Greater than, greater Read More
Java is created to operate in the distributed environment on the net. It is much easier to use compared to C++. Java functions are based on the object-oriented programming model. You can use it for online video, audio, games, banking applications and chat. It is also used in various intranet applications. Microsoft Java was first developed for Internet Explorer 3. This was the fastest implementation of JVM (Java Virtual Machine) for the first couple of years after Java release. The creator of Java, Sun Microsystems, sued Microsoft for incomplete implementation of Read More
Java was originally developed as an implementation of a programming language that would compile and complete its directive functions regardless of platform and language version. It was developed by James Gosling, a software developer employed by Sun Microsystems in June of 1991, whom released the first version of Java in 1995. The language is designed to allow programmers to write the code once and have it work in any Java Virtual Machine. The ability to do so has made this programming language extremely versatile, productive, and easy to use, and has helped Read More
J2SE is the Java 2 Standard Edition. J2SE features: Portability JDBC API for database access CORBA technology Java secuity J2SE consists of two components: Core Java and Desktop Java. Core Java provides back-end functionality, while Desktop Java provides GUI (Graphical User Interface) functionality. J2SE contains both the J2SE Development Kit (JDK) and the Java Runtime Environment (JRE). For more information on J2SE, visit J2SE.
Java bytecode is produced by the Java compiler and executed by the JVM (Java Virtual Machine). Java bytecode isn’t exactly source code, and it isn’t exactly compiled code, it’s something in the middle. Java bytecode is one of the things that make it possible for Java code to run on many different platforms.