Register | Log in | RSS channel for codegravity.com homepage Bookmark!

284/2NEW projects | 71 services | 215 websites | 834/3NEW freelancers | 2126 topics | advertise



Login:



Forgot your password?
Forgot your username?
Create an account
JoomlaWatch Agent

Users

Most active users today from total of 108:
garikello, Peerke, jakkrit, dayanand, andrew_saber, giakhanh, mohalb, carmachhh, fguyon, dfireablaze, boho, phoeker, ozedfr, ashish_php, amoluca, blackie, JDev, tinytim007, Pascale, besoil


19.9%United States United States
17.9%India India
9.3%Germany Germany
5.5%Russian Federation Russian Federation
4.4%United Kingdom United Kingdom
4.3%France France
4%Australia Australia
3.8%Netherlands Netherlands
3.8%Poland Poland
3.7%Italy Italy

Today: 961
Yesterday: 1402
This Week: 5251
Last Week: 8869
This Month: 2363
Last Month: 37593
Total: 117043


Partners:

HTML5, CSS3, SVG, tutorials

Freelance ColdFusion, Flex, PHP

Olejomalby, abstraktne obrazy

Camping Europe

WinAsm Studio

Vyšné Ružbachy

Sochy, Reštaurovanie

R.E.M.

Valid XHTML 1.0 Transitional

RSS feed:

Statistics:
Search Engine Genie Promotion Widget
Home

Java Tips

Here are some of my tips and notes, that could be useful for you

Java language fundamentals

There should be at most one public class definition per source file, the filename must match the name of the public class.

keyword - a word whose meaning is defined by the programming language

true and false aren't in fact keywords, they are literal boolean values

goto and const are reserved words

identifier - is a word used by a programmer to name a variable, method, class or label. Must begin with a letter, a dollar sign or underscore

Java's four signed integral data types are: byte, short, int, long

Double and float can take on values that are bit patterns that do not represent numbers
Float.NaN, Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY.. the same with Double

A literal is a value specified in the program source, they cannot appear on the left side of assignments.

A Java array is an ordered collection of primitives, object references or other arrays, all elements must be of the same type. To create and use an array you must follow three steps: Declaration, Construction, Ininialization. 1. int[] integers, 2. integers = new int[20]

Java array is starting with index 0.

A common mistake is to guess that importing has something to do with class loading. The fact is, that the name is brought into the source file's namespace.

import static java.awt.Color.RED; ... myColor = RED; ... Static imports eliminate the nuisance of constant interfaces.

import static measure.Scales.kilometersToMiles();

Member variable - is created when the instance is created, and exists as long the enclosing object exists. Automatic variable - is created on entry to the method. Class variable - (aka. static variable) is created when the class is loaded and is destroyed when the class is unloaded. Initial value is assigned to member variables, static variables, but not automatic variables.

When java passes an argument into a method call, a copy of the argument is actually passed.

Each process has its own stack and heap. Objects are always allocated on the heap.

Explicitly assign null into a variable when you have finished with it.

When the garbage collector finds memory that is no longer accessible from any live thread it takes steps to release it back into the heap for re-use. Class destructor method is called finalize().

It is not possible to force the garbage collection.

Importing slightly increases compilation time.

In Java all arguments are passed by value.


 

 

Comments  

 
0 #1 tarun 2007-03-08 08:22
can any body help me.how to find rss feeds for a given webpage using java
Quote
 

Add comment


Security code
Refresh

No Tweets

Add URL of a programming website
register as a freelancer
submit your project
open freelance projects you can work on
webmaster resources
write paid blog posts about programming - tips and articles
bugs and features

Recommended: (advertise)
Download Joomlawatch 1.2.12



Outsource your project
-
Submit your project description with all the requirements to more than 600 freelancers from around the world for FREE.


Freelancers, create paid articles
-
Looking for freelancers with experiences in Java to write paid articles on their experiences

FastDomain.com -
Fast Domain hosting. Hostmonster alternative. Also for $6.95/month.

HostMonster.com -
best cheap Joomla Web hosting. Website joomlawatchdemo.com is hosted by them with domain for $6,95/mo.


Advertise Here
-
Promote your services and get the new customers from the community of webmasters / programmers visiting CodeGravity.com

Green Geeks Hosting -
World's best selling green web hosting

Register as a Freelancer -
Submit your project experiences, programming languages and your other skills



News from Twitter:
No Tweets
RSS Feeds:new

rss Freelance
rss Projects
rss Forum
rss Resources

Popular:
MathGuard
download mathguard
Random screenshot:

linoopz15.jpg


Poll

At what price would you purchase JoomlaWatch ad-free license?
 
Privacy policy | Advertise | Donate | Doucovanie Nemcina
Joomla Visitors Google Map
Loading map...
Joomla Visitors Google Map
Visitors Google Map Agent

Locations of visitors to this page


©2003-2010 Codegravity.com