Variable`s in java

Before you use a variable in java, you must declare it, specifying its data type. The int  types is only one kind of simple variable you can use. mentioned here are the various possibilities. Integer – these types are byte, short, int and long, which hold signed, whole-value numbers. Floating-point numbers – these types are … Read more

Java`s Reserved Words

when you are writing java code, you should know that java reserves certain words for itself as part of the java language. There aren`t too many of them, though. Here they are; abstract – It specifies that the class or method will be implemented later, in a subclass. boolean – A data type that can … Read more

Commenting in your java code

Java supports three types of comments, two of which are taken from C++. you can surround a comment of any length with the characters “/*’ and “*/”, like this: /* This application prints out “Linux” */ public class abc { public static void main(string[] args) { system.out.println(“Linux”); } } The java compiler will ignore all … Read more

System.out.println(“………..”)

The main method has one line of code in it: public class name { public static void main(String[] args) System.out.println(“linux”);} } This is the actual line of code that does all the work. In this case, we are using some of the code that the programmers at sun have already created to display the text … Read more

public static void main(String[] args)

Here`s the next line of code. public class abc { public static void main(String[] args) {……}} Whats happening here is that we are creating a method in the app class. A method in Object-Oriented Programming is like a function or subroutine in standard programming- it`s a block of code that you can pass control to … Read more

Writing Java code: Creating an application

public class app { public static void main(String[] args) { System.out.println(“Hello world”); } } If you are new to Java, this might look strange to you. The idea here is that this application will print out the text “Hello world” when you compile and run it. for example, here`s how it looks in a DOS … Read more

What is Struts?

Struts is a framework that provides the use of the Model-View-Controller architecture for designing large-scale applications. it is a project of the Apache software foundation with its official home page is at http://struts.apache.org/. The Struts Framework includes a set of custom tag libraries and their associated java classes, along with various utility classes. The most … Read more

What is J2EE?

J2EE (Java 2 Platform, Enterprise Edition) is a platform-independent, java-centric environment from sun for developing, building and online deployment of web-based enterprise applications. The J2EE platform consists of a set of service- APIs, and protocol- that provide the functionality for developing multi-tiered, web-based applications. J2EE is a java-based, runtime platform created by sun microsystems used … Read more

What is JSP?

JSP Java Server Page (JSP) technology allow web developers and designers to rapidly develop and easily maintain, information-rich, dynamic web pages that leverage existing business system. As part of the java technology family, JSP technology enables rapid development of web-based applications that are platform-independent. JSP technology separates the user interface from content generation, enabling designers … Read more