Classes are well organised functions in java which help discriminate between two different functions.
Exactly what do you mean by 'C program in Java'
write a program draw circle and ellipse by using oval methods in java
Java program without mainWe need a main method for executing a program.But YES we can write a program without using main() method.TRICK 1 of 2 :: while writing applets in java we don't use main... we use init() method instead.TRICK 2 of 2 :: using 'static' we can write a program whic will execute successfully and output the desired message on screen. Here it is :: class Mohit{ static { System.out.println("This java program has run without the main method"); System.exit(0); } } -->save the program as Mohit.java to compile::javac Mohit.java (in command prompt) to run ::java Mohit(command prompt) output will be ::This java program has run without the main methodWhoa!!!!! we are done.;)
barsanabegam
yes ,i can add the website link in java program when we write.
i dont no string for servlate
write a java program to find factorial using recursive and non recursive
You can write it with Windows NotePad, although using an IDE such as NetBeans or Eclipse is recommended. If you mean you want to learn Java, take a look at the tutorials at the Oracle site.
Since the Java program is basically a text file, you can write it in any text editor (although using a Java IDE, or an IDE with support for Java, does give you certain advantages). Thus, you can use programs such as NotePad or NotePad++ to write the Java program. Using word processors such as MS-Word is problematic, because these insert additional codes. You would have to make sure you save the resulting file in the text format - give the "Save As" command, and choose a text format from the list.
You are best off looking into downloading an IDE such as Eclipse or netbeans, as they are tailored towards development using the Java programming language.
JDK stands for Java Development Kit. It is not a programming language. It is a the system using which you can develop programs in Java. You need to have jdk installed in your machine to create java programs.
Use text-editor notepad++