Archive for the 'Java' Category

Java: Object Oriented Programming

Wednesday, June 18th, 2008

By: Gupta

OOP is a programming technique designed to simplify convoluted programming concepts. In fundamental nature, object-oriented programming revolves around the idea of user- and system-defined chunks of data, and controlled means of accessing and modifying those chunks. Object-oriented programming consists of Objects, Methods and Properties. An object is basically a black box which stores some information. Object may have a way for you to read that information and a way for you to write to, or change in sequence. It may also have other less noticeable ways of interacting with the information.

Some of the information in the object may essentially be directly easily reached; other information may necessitate you to use a method to access it - conceivably because the way the information is stored internally is of no use to you, or because only certain things can be written into that information space and the object needs to check that you’re not going outside those limits. The directly reachable bits of information in the object are its properties. The difference between data accessed via properties and data accessed via methods is that with properties, you see accurately what you’re doing to the object; with methods, unless you created the object yourself, you just see the effects of what you’re doing.

Other JavaScripts pages you read will almost certainly pass on frequently to objects, events, methods, and properties. This tutorial will learn by example, without focusing too profoundly on OOP terminology. However, you will need a basic fundamental of these terms to use other JavaScript references. Your web page document is an object. Any web page may involve table, form, button, image, or link on your page is also an object. Each object has confident properties. For example, the background color of your document is written document.bgcolor. You would change the color of your page to red by scripts code writing the line document.bgcolor=”red”

Most objects have a certain collection of things that they can do. Different objects can do different things, just as a light can turn on and off. A new document is opened with the method document. Open () you can write “Introduction of Java” to a document by typing document. Write (”Introduction of Java “). Open () and write () are both methods of the object: document.

This is write Karl Garcia will be dealing with ZIP Codes as they were defined for the purpose of tabulate the 1990 survey Free Scripts summary.

Keywords: Zip Code Finder, Free PHP Scripts, Free Software, Free ASP Scripts

Software Article Source: http://www.eArticlesOnline.com

For more info please visit us at – Java Application Development

Free Java Script Tutorial

Wednesday, June 18th, 2008

By: Gupta

This tutorial will take you bit by bit through the fundamentals of JavaScript. You will learn how to write functions, use data from text boxes, create conditionals function loops, and generally make your web page “Java tutorial” classes for a living to commercial clients of all levels. I have well-read a lot about communication between people of various levels of computer experience. This tutorial assumes that you have no preceding programming experience, but that you have created your own HTML pages. If you find this tutorial helpful, please let me know. Also, links are courteously accepted. JavaScript is easy-to-use programming languages that can be implant in the heading of your web pages. It can augment the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, and create security passwords and more.

What’s the difference between JavaScript and Java?

Actually, the 2 languages have almost nothing in common except for the name. Although Java is technically an interpreted programming language, it is coded in a similar fashion to C++, with separate header and class files, compiled together preceding to execution. It is powerful enough to write major applications and insert them in a web page as a special object called an “applet.” Java has been generating a lot of exhilaration. Java is not considered an easy-to-use language for non-programmers.

JavaScript is much simpler to use than Java. With JavaScripts, if I want check a form for errors; I just type an if-then statement at the top of my page. No compiling, no applets, just a simple sequence.

This is write Karl Garcia will be dealing with ZIP Codes as they were defined for the purpose of tabulate the 1990 survey Free Scripts summary.

Keywords: Zip Code Finder, Free PHP Scripts, Free Software, Free ASP Scripts

Software Article Source: http://www.eArticlesOnline.com

For more info please visit us at – Java Application Development

Sun’s Java iPhone Port Faces Obstacles

Tuesday, April 1st, 2008

Posted by Charles Humble on Mar 31, 2008 11:59 PM

 

Within 24 hours of Apple unveiling the iPhone SDK, Sun Microsystems announced their intention to port the Java ME JVM to Apple’s iPhone and iPod Touch devices. In a video announcement Eric Klein states that he sees no reason why the JVM would not work on the iPhone:

“We’ve spent the last 24 hours feverishly pouring through all the information that Apple made available about this SDK and we’re really excited that Apple has decided to open the iPhone and iTouch (iPod Touch) to third party development. One of our original visions for Java was to allow the developer community to create amazing content and applications for as many devices across the world as possible and the iPhone is an important platform in that regard.”

When Sun made its announcement a number of astute bloggers and forum posters pointed out two major issues that seem to preclude Sun’s Java port. The first is a clause in the license agreement:

“An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Apple’s Published APIs and built-in interpreter(s).”

The second appears at first glance to be a technical limitation in the SDK. According to Apple’s official iPhone Human Interface Guidelines (available from the Apple iPhone Dev Center, login required) only one iPhone application may run at a time, and third-party iPhone applications will not be able to run in the background:

“This means that when users switch to another application, answer the phone, or check their email, the application they were using quits. It’s important to make sure that users do not experience any negative effects because of this reality. In other words, users should not feel that leaving your iPhone application and returning to it later is any more difficult than switching among applications on a computer.”

This is presumably not strictly a technical limitation - the iPhone runs the same kernal as Mac OS X which supports multiple concurrent processes. The iPhone itself can clearly multitask (otherwise it couldn’t, for example, ring when you were using Safari with it) so this restriction is most probably imposed to limit the amount of RAM consumed by third party background processes. It seems reasonable to speculate that Apple could therefore allow chosen third party developers the ability to run their applications in the background. However it seems quite unlikely that Apple would provide Sun such access. For one thing being able to install and Run Java ME applications on the iPhone and iPod Touch would make it harder for Apple to restrict distribution to their store as they intend, and for another Apple’s relationship with Java seems to have become increasingly negative over the last few years. Contrast Steve Job’s comments at a keynote at JavaOne 2000 in which he said:

“We want to bring Java back to the desktop in a really big way. I’m here today to personally tell you we are working hard to make Mac the best Java delivery vehicle on the planet. The biggest thing we are doing is we are going to bundle Java 2 SE into every single copy of Mac OS X [the upcoming Macintosh operating system] that we ship later on this year.”

with remarks he made last year to the New York Times:

“Java’s not worth building in. Nobody uses Java anymore. It’s this big heavyweight ball and chain.”

Eric Klein issued a further statement last week stating that Sun would like to talk to Apple if there are conditions blocking Sun’s intentions:

“Our announcement was based on our excitement to build a JVM for the iPhone and the iPod Touch, as well as our assessment of Apple’s publicly available information on the SDK and related business terms. If there are clauses in the iPhone beta SDK license agreement that potentially limit third party application distribution, then these are items that we want to have a positive discussion with Apple about. Sun and Apple have an ongoing relationship around Java SE on Mac OS X and we look forward to further discussions with Apple about a JVM for iPhone and iPod Touch. Sun definitely plans to deliver a JVM for iPhone and iPod Touch if at all possible!”

It will be interesting to see if Sun provide any more details during JavaOne.

Article source - http://www.infoq.com/news/2008/03/jme_iphone

For more info please visit us at java application development & E-Commerce Solution

Sun Locks Up MySQL, Looks To Future Web Development

Thursday, February 28th, 2008

This is the most important acquisition in Sun’s history,” said CEO Jonathan Schwartz.

By Charles Babcock
InformationWeek
February 26, 2008 05:20 PM

Sun Microsystems (NSDQ: JAVA) has completed its acquisition of MySQL six weeks after announcing its intent to do so. As of today, Marten Mickos, MySQL’s former CEO, is now senior VP of a new software database group, reporting to Rich Green, executive VP for software. Sun CEO Jonathan Schwartz said Mickos also will report directly to him as part of Sun’s senior management team.

The $1 billion cost of acquiring MySQL was worth the price, said Schwartz. MySQL “was the crown jewel of the open source marketplace,” with 11 million customers and “the strategic value of opening new markets to Sun,” he said in a teleconference announcing the closure of the deal on Tuesday.

MySQL is the speedy, open source, Web-page-serving database that’s used by Facebook, Google (NSDQ: GOOG), Slashdot, and other giants of the Web. With Sun’s help, MySQL can now overcome what Schwartz termed “the chief liability of open source companies,” supplying 24/7 global technical support.

The acquisition “marks the end of a remarkable era for MySQL and the beginning of another remarkable one,” Mickos said at the teleconference. “As part of Sun, we will grow to serve more customers with bigger deployments and bigger scalability.”

The announcement was filled with superlatives. “This is the most important acquisition in Sun’s history,” said Schwartz, even though Sun’s $4.1 billion acquisition of Storage Technologies in June 2005 was much larger. Reminded of StorageTek, Schwartz said, “We don’t have any second thoughts about history. MySQL as a database is as much about storage as StorageTek. We’re gathering together the most compelling open source storage platform in the industry.”

Sun is counting on MySQL’s continued growth in the $15 billion-a-year database industry to fuel additional software sales out of the Sun portfolio, although analysts put MySQL’s share of that at somewhere less than $100 million a year in revenue. Both Mickos and Schwartz took pains to say that Linux, not Sun’s Solaris, will remain MySQL’s primary operating system. In fact, MySQL runs on Linux as its most popular platform, with Windows second, and Solaris coming in a distant third. Nevertheless, MySQL was developed on Solaris, said Simon Phipps, chief open source officer at Sun.

At a media summit Feb. 13, Schwartz raised some eyebrows when he said the popular LAMP stack, which includes Linux and MySQL, doesn’t have to be taken literally. Sun will encourage developers to use Solaris, instead of Linux, with the stack.

Regardless of operating system choice, Schwartz asserted that with MySQL, Sun has a set of software that more directly competes withMicrosoft (NSDQ: MSFT)’s Windows Server and SQL Server database. “I couldn’t agree more strongly,” he told a questioner, when asked if the acquisition brings Sun closer to head-to-head competition. But Sun will compete on building out the next generation of Web applications for the Internet, not dominance of the desktop.

Sun’s Green said it wasn’t the right time to talk about future possibilities stemming from the acquisition, but it wasn’t unreasonable to expect Sun to more closely integrate MySQL with Sun middleware, such as its GlassFish application server project.

As developers build out Web applications that interact with individual site visitors, answer questions with fresh product information and data, and conduct transactions, Sun wants to be the supplier to the enterprise for the network’s next phase. Sun plans to buy additional open source companies, but it clearly views MySQL as the cornerstone of its campaign. It gives Sun an open door to the builders of the next generation of applications.

That acquisition wasn’t only big for Sun, said Schwartz. “It was the most important acquisition in the industry,” he said during the teleconference.

Read Full Article

For more info please visit us at: SEO services & Software Outsourcing Company

Apache Wicket 1.3 set for Java Web development

Sunday, January 6th, 2008

AJAX is bolstered in new release

By Paul Krill

Looking to make Web development easier for Java developers, the Apache Software Foundation began offering this week Apache Wicket 1.3, an open source component-based Web framework.

Formerly housed at SourceForge, the Wicket project moved over to Apache last year; version 1.3 is the first release bearing the Apache nameplate, said Martijn Dashorst, chairman of the project and a senior software developer at Web application development firm Topicus. Enhancements have been made in areas such as AJAX (Asynchronous JavaScript and XML) and portal support.

“The purpose [of Apache Wicket] is to make development for Java developers simple as a possible,” Dashorst said. “We use a component model for that.”

Developers can create components with plain old Java and HTML, Dashorst said. Apache Wicket 1.3 is downloadable here.

Developing Web applications in Java has been a problem; Apache looks to address this with Wicket, according to Dashorst. “In JSF (JavaServer Faces), for instance, it’s fairly hard to create your custom components. You need to have almost a graduate degree to create custom components with JSF,” he said.

Apache Wicket’s lack of reliance on XML is hailed on the project’s Web site.

“With proper mark-up/logic separation, a POJO [Plain Old Java Objects] data model, and a refreshing lack of XML, Apache Wicket makes developing Web apps simple and enjoyable again. Swap the boilerplate, complex debugging and brittle code for powerful, reusable components written with plain Java and HTML,” the site said. Wicket emphasizes a logical separation of design and code.

A key improvement in version 1.3 is enhanced AJAX support. “Pages can be a lot more dynamic than previously,” Dashorst said.

Google Guice capability has been added as an alternative to using the Spring Framework with Wicket. Developers also can use Wicket pages directly in a portal without changing a line of code.

Also new is the switch to the Apache license over from the Lesser GPL (GNU General Public License). “It’s more business friendly,” because it allows companies to create closed-source products from Wicket, Dashorst said.

A user of Apache Wicket, Nicholas Heudecker, principal at software development firm System Mobile, said his company migrated to Wicket and away from Struts.

“With Wicket, it’s just a lot easier. There’s no extraneous configuration. Everything is controlled within the Java code,” Heudecker said. “Once people have an opportunity to take a look at it, they’ll really like it.”

Although pleased with the extra AJAX support and development features in version 1.3, Heudecker added he wished there were better tools support for IDEs. Heudecker said he uses the JetBrains IntelliJ Idea IDE with Wicket but would like more tools.

Version 1.3 can scale to very large numbers of users with stateless pages and components. An Apache Velocity template engine in version 1.3 allows for user-generated macros in applications such as a content management system.

The logging API in Apache Wicket 1.3 switches from commons-logging to SLF4J (Simple Logging Façade for Java). This bolsters debugging and makes application deployment safer.

Although the current version of Wicket is anchored on Java Development Kit 4, the next release in a couple months will be based on Java 5, gaining benefits such as generics to improve safety, Dashorst said.

Wicket has been downloaded about 120,000 times since it began three years ago. It was moved over to Apache because of infrastructure issues such as spam and sustaining outages in the Subversion repository at SourceForge, Dashorst said.

SourceForge representatives could not be reached for a response.

Paul Krill is editor at large at InfoWorld.

Read Full Article

For more info please visit us at: Offshore Software Development & Website Design & Development



View My Stats