Installing Java

Here you are with your computer and you can’t wait to start writing Java applications. But first, you need to get yourself a JDK and install it. For this, you need an Internet connection to https://www.oracle.com/in/java/technologies/javase-downloads.html. and download the java in laoptop or pc.

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