Java Tutorials
291. Web Security Issues
By: aathishankaran : 2007-04-02
Description: To some, the Internet itself is just one big security vulnerability. However, for most of us, it is a vulnerability that we have to live with. The following subsections describe Web-specific security issues from the point of view of the Webmaster and the user.
292. Creating Objects in Java
By: aathishankaran : 2007-03-21
Description: In Java, objects can be created using the new operator followed by a call to the constructor of the class. Here is an example
293. Nested and Inner Classes in Java
By: aathishankaran : 2007-03-16
Description: It is possible to define a class within another class; such classes are known as nested classes. The scope of a nested class is bounded by the scope of its enclosing class. Thus, if class B is defined within class A, then B is known to A, but not outside of A. A nested class has access to the members, including private members, of the class in which it is nested. However, the enclosing class does not have access to the members of the nested class.
294. Arrays in Java
By: aathishankaran : 2007-03-16
Description: An important point can be made about arrays: they are implemented as objects. Because of this, there is a special array attribute that you will want to take advantage of. Specifically, the size of an array that is, the number of elements that an array can hold is found in its length instance variable. All arrays have this variable, and it will always hold the size of the array.
295. Static Concept in Java
By: aathishankaran : 2007-03-16
Description: There will be times when you will want to define a class member that will be used independently of any object of that class. Normally a class member must be accessed only in conjunction with an object of its class. However, it is possible to create a member that can be used by itself, without reference to a specific instance. To create such a member, precede its declaration with the keyword static. When a member is declared static, it can be accessed before any objects of its class are created, and without reference to any object. You can declare both methods and variables to be static. The most common example of static member is main (). main () is declared as static because it must be called before any objects exist.
296. Access Control using Encapsulation in Java
By: aathishankaran : 2007-03-16
Description: As you know, encapsulation links data with the code that manipulates it. However, encapsulation provides another important attribute: access control. Through encapsulation, you can control what parts of a program can access the members of a class. By controlling access, you can prevent misuse. For example, allowing access to data only through a well-defined set of methods, you can prevent the misuse of that data. Thus, when correctly implemented, a class creates a "black box" which may be used, but the inner workings of which are not open to tampering.
297. XML and Java - Parsing XML using Java Tutorial
By: Maggie : 2007-03-15
Description: If you are a beginner to XML using Java then this is the perfect sample to parse a XML file create Java Objects and manipulate them.
298. Recursion in java
By: aathishankaran : 2007-03-08
Description: Java supports recursion. Recursion is the process of defining something in terms of itself. As it relates to java programming, recursion is the attribute that allows a method to call itself. A method that calls itself is said to be recursive.
299. Constructor Overloading in Java
By: aathishankaran : 2007-03-08
Description: In addition to overloading normal methods, you can also overload constructor methods. In fact, for most real-world classes that you create, overloaded constructors will be the norm, not the exception. To understand why, we can take example for this below program.
300. Methods in Java
By: aathishankaran : 2007-03-06
Description: Classes usually consist of two things:- Instance variable and Methods. The topic of methods is a large one because java gives them so much power and flexibility. However, there are some fundamentals that you need to learn now so that you can begin to add methods to your classes.