Java Sockets – You Just Got to Plug Them in

I realised that programming in Java is quite a fun only after doing it myself. You will be amazed to know that it’s like putting different pieces of puzzle together. You put them relatively in an integrated and coherent manner. The Beauty of it is, that most of the times you dont have to create these pieces yourself. You just customize them according to your need after you get them from an already defined java class or package. It was about programming, now lets talk sumthing about sockets.

Socket is used to establish a point-to-point, bidirectional connection between two entities in a network. Just like a real world socket, it is used to plugin a connection from another source. The connection can be incoming or outgoing or both. Similar is the case at the other end. To understand these sockets  properly, you need to learn a bit about Operating System and its Networking Protocols. Sockets are basically of three types: 1)UNIX Domain Sockets; 2) Internet Domain Sockets; 3) NS domain Sockets.

Java being platform independent Programming language, supports only Internet Domain Sockets as only they are platform independent out of three. These internet domain sockets are distinguished on the basis of Internet protocol they work on… Continue reading “Java Sockets – You Just Got to Plug Them in”

Asymmetric Cryptography in Java

Security plays a significant role in our day to day life. So far software applications are concerned, security of data is required for authentication and for several validations. Normally while developing the applications, we use the concept of cryptography for password encryption and decryption. Some applications require more security, so they go for high end security system like trusted security certificates. The security mainly focuses on the integrity of the data at the several ends.

Technicalities For data security Java Cryptography provides a suitable framework to implement several kinds of cryptography. However there are basically two types of cryptography. Once is Symmetric Cryptography and Asymmetric Cryptography. When both the ends communicate the secured data with a common key for encryption and decryption, it is called the Symmetric Cryptography. In this case a shared key is used by both the parties to encrypt and decrypt the data. However there is a problem relating to exchange of key for symmetric cryptography. To overcome this problem java provides another approach for the cryptography called Asymmetric Cryptography. In case of Asymmetric cryptography, there will be two keys unlike one key in case of symmetric cryptography. One key is called Private key and other is called Public key. These two keys are generated together and can be used for encryption and decryption. In this case the Public key is used by anyone who wishes to communicate securely with the owner of the Private key. The Private key is used by the main owner and the owner gives the Public key so that they can decrypt the data. In this article I will give you the example on Asymmetric cryptography. You can find more tutorials and concept on Sun’s JCE(Java Cryptography Extension). In my next article, I will provide you the example on Symmetric cryptography.

Complete Example

This example is only meant for learning and not for any specific use. You can take the piece of code to test in your system to learn the above concept.

The following class is used to create the Public key and Private key. This class contains generic methods to generate the Public and Private key. If you run the testharness class, you will find the two files called “Public.key” and “Private.key”. Please go through the java docs mentioned in the methods.

Continue reading “Asymmetric Cryptography in Java”

Java Server Pages

JSP Hosting is a Java hosting program that has many similarities to Microsoft ASP. JSP hosting refers to the ability to run and manage Java Server Pages. Even though Java Server Pages (JSP) is quite similar to Microsoft’s Active Server Pages (ASP) JSP does have slight differences in the hosting environment.

Java Server Pages is a server-side language that uses simple tag-based codes inserted into HTML and XML to produce dynamic and interactive web pages that are platform independent, meaning that by all rights they should appear exactly the same on every computer screen, regardless of the platform. This is the result when your publish yoy JSP-coded website on a JSP-supported Java hosting provider.

JSP allows web designers combine dynamically generated HTML in with their standard, static HTML code. While most CGI programs require you to compose the entire website in that one program, JSP allows you to compose the dynamic aspects and the static aspects of your site separately.

Java Hosting which includes JSP support would be the logical choice of any web designer wishing to eliminate the irritating need to repeat work they’ve already done. Java hosting, and JSP hosting specifically, would also be an efficient choice for those web designers working with a team.

One of the greatest aspects about JSP is that you don’t need to learn Java to use it and it’s practically built into programs like Macromedia Dreamweaver MX.
JSP’s use a variety of simple tags. The following are some of the most basic and common ones:

* Directives: <%@directive%> Instructions processed when the page is compiled

* Hidden Comments: <–comment–> Document the page, not sent to the client

* Declarations: <%!declaration%> Declare methods or variables with scope throughout the page.

* Expressions: <%=expression%> A bit more complicated to explain, expressions produce results which are then inserted into the output stream at the appropriate place

* Scriptlets: <%scriptlet%> A fragment of code that can access a declared variable and execute it at a defined time.

* Actions: <jsp:action> An XML-style tag that can perform any of a slew of functions

So if you are running JSP, remember that you need to have a host that provides JSP runtime modules on the host side of your web server so that you can run the appropriate scripts.

Read about grilling potatoes, how to cook bok choy and other information at the Knowledge Galaxy website.

Java homework help: – Best solution at Tutorsonnet

JavaJava is designed to be simple and very easy to learn. It contains so many useful features. So for that reason it is not so popular today. Clearly a decision was made to hide some problems rather than to give people the means to solve them. Although Java is classed as an object-orientated programming language and one of the easier programming languages to start learning, Java’s primitive types are not objects and so consequently it is not a pure object-orientated language.

Java has the following problems:

  • A Java compiler can not logically test as much of a program’s design as a C++ compiler can.
  • Some design problems may not be found, even at run-time, until too late.
  • There is not enough separation between interface and implementation.

Java developers could document the behavior of every method but they rarely do, and there is no formal guarantee that the code will comply with the constraints described in its documentation. Ideally, a design would be perfect from the start, developers would make no errors while implementing it, and all of the code would be completely documented. In the real world, designs are perfected only in the course of development, simple errors are made, and documentation is incomplete. This is the reality, but java does not help us deal with it.

Continue reading “Java homework help: – Best solution at Tutorsonnet”

Online Java Programming Tutorial

Online Java Tutorial. It is the need of the hour as the world slowly get stable economy and the programming options and learnings are again started.

Java is a very powerful language to be used in designing web applications. Java is a product of sun microsystems and helps in desining standalone applications web, applications, custom applications, embedded system programming, mobile programming and so on.

If any one who want to make his career in computer software he has to be introduced to java. Such popular and powerful language it is. As per the different surveys and the feedbacks from the job consultancies we learn that the job opeinings for java lies between 40 to 60 percentage of total software openings are demanding programming skills in java.

Java lays the foundation for not only the programmers but also the testers when the write their scripting for automated testing.  Learning java will help to achieve ones targets easily because of the inbuilt libraries it has, the security it provides, especially the platform independance.

There are several websites which provides tutorials for learning core java, advanced java, servlets, JSPs, architecture using frameworks like struts, hibernate, spring and so on. These sites will provide discussion forums where we can post our queries and the experts will post the answers to it. When registered with the site we will get regular mails on java updates, new examples added, We can also provide feedback to the site as it conains the feedback.

I hereby will introduce you to one such website http://www.javaneeds.com

http://webarchtechnologies.com

Anand Ravindran
Project Manager,
Webarch Technologies
Chennai 600118

Beginning Programming with Java For Dummies

Product Description
One of the most popular beginning programming books, now fully updated Java is a popular language for beginning programmers, and earlier editions of this fun and friendly guide have helped thousands get started. Now fully revised to cover recent updates for Java 7.0, Beginning Programming with Java For Dummies, 3rd Edition is certain to put more first-time programmers and Java beginners on the road to Java mastery. * * Java is the platform-independent… More >>

Beginning Programming with Java For Dummies

Learn Java on the Macintosh

Product Description
Veteran authors Barry Boone and Dave Mark show readers how to learn to program using Java on the most user-friendly platform–the Macintosh. Written in the style of the highly successful Learn C on the Macintosh, this easy-to-follow introduction will take beginning programmers through the core concepts of this new programming language. The CD-ROM contains Metrowerk’s CodeWarrior Java Lite, the premier version of Java for the Mac…. More >>

Learn Java on the Macintosh

Learn Java with JBuilder 6

Product Description
Learn Java with JBuilder 6 teaches you how to become a productive JBuilder developer using the latest version of the most popular Java IDE: JBuilder 6. Master teacher and Java programmer John Zukowski uses bite-size examples to introduce the Java programming language and the core Java libraries. Learn to use many of the JBuilder wizards and JBuilder’s JavaBeans Express to automatically generate the development framework, which allows you to concentrate on filling in… More >>

Learn Java with JBuilder 6

Co-author Of Apache Tomcat Book Recommends Excelsior JET For Protection Of Java Web Applications

Co-author Of Apache Tomcat Book Recommends Excelsior JET For Protection Of Java Web Applications
Excelsior’s solution employs native compilation to prevent reverse engineering and improve security of Web applications code.

Read more on PRWeb via Yahoo! News