Java-Tutorials
Java Tutorials - Best Java Tutorials Directory. Java is a portable object-oriented language developed by Sun Microsystems. Originally used mostly for web programming, it is now used primarily to develop large web-based applications. Find tutorials, example codes about Sun Java Technology. |
|
|
|
Java-Tutorials
|
Features of Java
Java is a class based Object Oriented Programming (OOPs) language, which works on write once, run anywhere (WORA) and is used by programmers to create applications, games, operating system for computer and mobile. Most of the web-browsers today come with Java plug-in supports. Java is an Object Oriented language and provides simple software development and maintenance. The basic unit of Java is object.
View Rating |
|
|
Java-Tutorials
|
Vector in Java
Vector in Java are array lists that are used instead of arrays, as they have extending properties, which means that they can grow and shrink to accommodate data even after the Vector has been created. Capacity of vector is always to the lowest degree. Size of the vector is however larger because components are added to the vector at run-time.
View Rating |
|
|
Java-Tutorials
|
Difference between C++ and Java
Java and C++ are Object Oriented Programming (OOPs) language. Java is derived from C++, hence both has many similarities. C++ is considered more complex when compared to Java. C++ was designed for infrastructure programming and extends the C programming language. Java supports network computing.
View Rating |
|
|
Java-Tutorials
|
Encapsulation in Java
Encapsulation along with Inheritance, Polymorphism, and Abstraction are the four concepts of Object Oriented Programming (OOPs). Encapsulation in Java is the technique of binding or wrapping the data and the codes in a class private and provides access to them by public methods. Encapsulation is a type of data hiding where a code and data declared private cannot be accessed by any other code outside the class.
View Rating |
|
|
Java-Tutorials
|
Switch Case in Java
It is very difficult and lengthy to write programs using if-then and if-then-else statements. As switch statement allows in-numerous possible execution paths they are used as the replacement of if-then and if-then-else statements. Switch statements with String cases are supported in Java SE 7 but the earlier version of Java did not support String in switch/case. Switch statements works with type byte, short, char, or int.
View Rating |
|
|
Java-Tutorials
|
Applet in Java
Applet is a Java program designed for execution within the web browser. They are embedded into HTML pages and run on Java enabled web browsers like Mozilla Firefox and Internet Explorer. An applet is a Java subclass that extends the java.applet.Applet class. Applets are also useful for a small Internet and intranet applications. They run remotely on the client browser and cannot access system resources on the local computer. They make a website more dynamic.
View Rating |
|
|
Java-Tutorials
|
SubString in Java
SubString(), a method of String class is used to get a part of original string as String object. This method is defined in java.lang.String class. This method returns part of String started from beginIndex up to the end of the original string. If beginIndex is equal to length in SubString(int beginIndex) it will return empty String.
View Rating |
|
|
Java-Tutorials
|
Inheritance in Java
Inheritance, one of the important concepts of Object Oriented Programming (OOPS) defines a general class and establishes a subtype from an existing object. What are the Benefit of using inheritance. Inheritance allows access of properties and methods of super class by a sub class. Extend keyword is used to inherit all the properties of the super-classes by subclasses.
View Rating |
|
|
Java-Tutorials
|
Annotations in Java
Annotations behave like metadata and provide data about a program that is not part of the program itself. They are used to associate program elements with the meta tags so that the compiler can generate interdependent code to support the annotated elements. Developing annotations helps in faster development of program. Multi-value annotations are used to pass the values to multiple data members.
View Rating |
|
|