JAVA Articles
Importing Java Packages - ...end of the package name. This means that it will include all of the classes within the package (i.e., the asterisk is used as a wildcard).
Ano...
What is a Java Package - ...e of the name of a variable.
The following table shows some of the main packages that are include...
Java Methods - ... doSomething()
{
// add code here
}
This method is called doSomething and has a return type of void, which simply indicates that...
Variable Scope - ...this code block
inside = outside;
}
outside = 5;
// inside cannot be accessed here
The variable inside cannot be access...
Regular Expressions in Java - ...to match to string data. In the String class, you can use the method matches to match a regular expression passed as a parameter of type String to the...
Invocation Chaining - ...follows:
int i = 72;
String str = String.valueOf(i);
char firstChar = str.charAt(0);
System.out.println(firstChar); // prints...
Java Tactics: Earn A Fortune With Java - ...s, guidelines and untold secrets from a few of the world's most successful Java Developers, Architects and Masterminds and I've put it all in one pl...
JAVA and its Advantages - ... software products and specifications from Sun Microsystems that together provide a system for developing application software and deploying it in a c...
SELECTION STATEMENTS IN JAVA - ...c conditions. And the jumping statements are used to jump from the regular sequential control of program to the user chosen path.
...
Latest "JAVA" Articles
Page# 1 (last added articles shown first)
Did you know that JavaScript was developed by Netscape and Sun (09/01/2010)
(...)
The result was ECMAScript, yet another name for the similar language. Though the name never really stuck, we should really be referring to JavaScript as ECMAScript. JavaScript, ECMAScript, JScript that thing to call it was gaining ground by 1996. (...)
We all heard about Document Object Mode (09/01/2010)
(...) There are three kinds of objects in JavaScript: User-defined objects created from scratch by the programmer. We won’t be dealing with these. Native objects like Array, Math, and Date that are built in to JavaScript. (...)
AJAX: Find out if we can speak about a future for it (09/01/2010)
(...) com/). Once people began to interact with the service, other features came to the fore. Gmail employs spellchecking, auto-completion of addresses, and other processes that are carried out transparently without anyone's knowledge. (...)
SELECTION STATEMENTS IN JAVA (03/04/2009)
(...) So we study both of them in detail.
1. IF STATEMENT:
The simple if statement is very simple to understand. (...)
JAVA and its Advantages (02/05/2009)
(...) Many companies in India have well-qualified software engineers having expertise in Java, Java Script, J2SE, JSP, and J2ME, JAVA Programming Services help your businesses to do better. They provide variety of Java development services including project solutions.
Author Bio:
Outsourcing programming services is a leading outsourcing programming services Provider Company. (...)
Java Tactics: Earn A Fortune With Java (07/09/2008)
(...)
I for one believe that the code we developers write, is a work of art, and we deserve a fancy lifestyle for that, after implementing these tactics, you'll get the cash rewards you deserve as a Java programmer.
The following 6 tactics will guarantee you a balance of Measurement and Leverage, so the financial rewards will be great:
Tactic 1: The First Timer
Well you've probably heard the story that in order to make it in programming, you need a Computer Science degree, well I'm here to tell you that you don't, yes it does have its advantages but it's not the only way to enter the programming field, a good diploma can be just as good as a CS degree.
Ok, well now that you've got the qualification, what's next?
Tactic 2: Strategic Java Moves
Well as for this section, a lot of companies wouldn't want their employees getting hold of this information because honestly, this is no new strategy, it already exists except that only a few people know about it, once you find out what it is, you'll bang your head against the wall for not thinking about it in the first place, this section also requires good negotiation skills so I’ll touch on the important tips a little bit. (...)
Introduction to Object Oriented Programming (OOP) (01/03/2008)
(...) Methods provide the functionality of the object and can be used to interact with the attributes. Methods are also known as functions or procedures in various other programming languages.
Object-Oriented Programming in Java
The Java language is completely object oriented. (...)
Operator Precedence in programming languages (01/03/2008)
(...) When in doubt, it is recommended that you use parentheses to specify the order of operations. It is often best to use parentheses anyway to make your code more understandable.
The following table shows an operator list containing operators with a higher precedence at the top and thoses with a lower precedence at the bottom. (...)
Bitwise Operators (01/03/2008)
(...)
Byte
Bits
A
0
1
1
0
1
0
1
0
B
1
1
1
1
0
0
0
0
A AND B
1
0
0
1
1
0
1
0
The NOT (~) operator will invert all of the bits, where ones becomes zeros and zeros become ones, and is therefore a unary operator used with only one operand, whereas the other bitwise operators we have just seen were tested against two operands (binary operators), A and B. The following table shows the result of a NOT operation on byte A.
Byte
Bits
A
0
1
1
0
1
0
1
0
NOT A
1
0
0
1
0
1
0
0
The bitwise AND, OR, and XOR operators can also be used with boolean expressions, as Boolean values effectively only contain one bit that is either true or false. (...)
Regular Expressions in Java (01/02/2008)
(...) tter" and wanted to test this against a string.
String str1 = new String("better");
String str2 = new String("butter");
String regex = "b.tter";
str1. (...)
Java Methods (12/29/2007)
(...) The following line of code could be added, for example, in your main method to assign this value to a variable:
int myNumber = getFiveDoubled();
This line of code will assign the value of 10 to the variable myNumber.
Note Just because the method getFiveDoubled now has a return type, it does not mean that it cannot be called on its own.
getFiveDoubled();
This method will essentially do nothing, but you may have a method that performs a required task and then returns a value, which you want to ignore. (...)
Variable Scope (12/29/2007)
(...) out.println("counter = " + counter);
}
System.out. (...)
What is a Java Package (12/24/2007)
(...) io
The I/O package contains classes that allow support for input and output operations.
java.awt
This is the Abstract Window Toolkit package and contains all the necessary classes to create a GUI within your Java applications and applets. (...)
Importing Java Packages (12/12/2007)
(...)
Another example of this would be if we wished to include the utility package, which is called java.util. This would be done with the following statement:
import java. (...)
ISO Management Elements in Java EE .NET Platforms (11/28/2007)
(...) Where possible, the fault management system can take corrective action to correct the fault and automatically restore service. The Java EE platform and .NET platform have different models for logging and event handling. (...)
Java EE Platform (11/27/2007)
(...) The next section contains many details on its architecture.
For example, you can create a simple Java program MyInteropSample.java using a text editor that prints out the simple message, "This is a simple Java application," as follows:
public class MyInteropSample {
// define your variables here…
public static void main(String args[]) {
// you can insert your processing logic here…
System. (...)
Java EE Architecture (11/27/2007)
(...)
Java Naming and Directory Interface (JNDI) JNDI API provides an application-level interface to access naming and directory services as well as a service provider interface to attach a provider of a naming and directory service.
JavaBeans Activation Framework (JAF) JAF provides a framework for handling data in different Multipurpose Internet Mail Extension (MIME) types, originating in different formats and locations.
Security Services
Java Authentication and Authorization Service (JAAS) Login context for authenticating and authorizing the serviced requester. (...)
What are Java Listeners (09/02/2007)
(...)
void keyTyped(KeyEvent e)
A key is pressed and then released (note that this event is only posted for keys that are deemed to be type-able, such as alpha characters and numbers and not keys such as F1, Ctrl, and Alt, for example).
MouseListener
void mouseClicked(MouseEvent e)
A mouse button is pressed and then released on a component.
void mouseEntered(MouseEvent e)
Mouse enters a component area. (...)
Enter page# 1 (last added articles shown first)