Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners java programming structure
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


biswajeet palauri
java programming structure
1 Answer(s)      5 years and 3 months ago
Posted in : Java Beginners



Advertisement
View Answers

August 14, 2009 at 2:31 PM


Hi Friend,

The structure of Java programme is:

[Package declarations]

[Import statements]

[Class declaration]

[Method declaration]

eg:
package form;

import java.lang;
class Add{

public void addNumbers(){
int a=10,b=5;
int c=a+b;
System.out.println(c);
}
public static void main(String[] args) {
Add a=new Add();
a.addNumbers();
}
}

Thanks


Related Tutorials/Questions & Answers:
java programming structure - Java Beginners
java programming structure  java programming structure  Hi Friend, The structure of Java programme is: [Package declarations] [Import statements] [Class declaration] [Method declaration] eg: package
Structure of Java Arrays
Structure of Java Arrays       Now lets study the structure of Arrays in java. Array is the most widely used data structure in java. It can contain multiple values of the same
Advertisements
java data structure - Development process
java data structure  what is the minimum no of nodes for AVL tree whose height h=15? pls let me know the answer.  Hi Friend, Minimum node of nodes in AVL tree is equal to its height. Thanks
Java Training and Tutorials, Core Java Training
Java is a powerful object-oriented programming language with simple code... interfaces because Java has built-in application programming interface (API) and due... Java Training and Tutorials, Core Java Training  
Java Programming
Java Programming  Hi, What is Java Programming? How I can learn Java Programming in one month? Thanks
which data structure is good in java..? - Java Beginners
which data structure is good in java..?  Hi frends, Actually i want to store and retrieve some data using data structures like array list, stack and vector ...etc........ i wanted to know, which technique is good to store
how to create this diamond structure with java. - Java Beginners
how to create this diamond structure with java.   * *** ***** * *** *** * ***** * *** *** * ***** * *** *** * ***** *** *   
convert the following Pseudocode to java if/else structure
convert the following Pseudocode to java if/else structure   dirfrom=D:/processimagessoftware/software/images dirto=D:/processimagessoftware/software/processed/ dirto=D:/imagevideodb/ author=3 country=100 state=34
java programming
java programming  what is taxonomy tree why we use that concept in java   hierarchical taxonomy is a tree structure of classifications for a given set of objects
Java SDK Directory Structure
Java SDK Directory Structure       This section introduces the Directory and file structure... information bellow. SDK Directory Structure: Subdirectories of the SDK
structure in JSP
structure in JSP  How do I achieve structure in JAVA or JSp
Java Programming
Java Programming  Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the student√?¬Ę√Ę‚??¬¨√Ę‚??¬Ęs programming mark. Determine how many student get A+ and A for their grade
Java programming
Java programming  What is the Role of OOP in java
Java programming
Java programming  What is the Role of OOP in java
java programming
java programming  Write a Java program that prompt user to input a number of students in a class. Then, prompt user to input the student‚??s programming mark. Determine how many student get A+ and A for their grade and how many
programming - Java Beginners
programming for java beginners  How to start programming for java beginners
java programming
java programming  how to write a coding for simple login form in netbeans
JAVA PROGRAMMING
JAVA PROGRAMMING  Write an OVERLOADED FUNCTION in java that swaps(interchanges) 2 user given numbers.(one integer and one float value) and displays the result after swapping. Invoke the function in a class
Java Programming
Java Programming  Using Java Frame form, help me develop a GPA calculating device, able to show Grade and points together, and using MySQL database
Java Programming
Java Programming  Using Java Frame form, help me develop a GPA calculating device, able to show Grade and points together, and using MySQL database
java programming
java programming  how to count the no. of constants in a user given string?? plzz help
java programming
java programming  Write a complete Java Program that correctly does the following: prints out first 1000 numbers (not including 1000) with a statement indicating whether it is even or not.. Output: Example Number 0 - Even
java programming
java programming  WAP to calculate the sum of: x + x(square)/2 + x(cube)/3 +.......... x(to the power n)/n
java programming
java programming  Hi friends, if i create one project what are the step i can make...... i need step by step procedure
java programming
java programming  supose i have a text field in java (like in gmail home page u have username field ) so i want to fill that field automatically by taking record from the database so is there any mechanism in java to handle
java programming
java programming  Hi friend if you have any idea about this statement please tel me... String qry1="select * from custentry1 where custid='"+custno
java programming
java programming  Hi friends i need simple login form coding using two labels,two textfields and two buttons in netbeans without using database connection. . if you know that logic please tell
java programming
java programming  Hi, do u have any idea about these lines? Hashtable<Integer,JLabel> labels = new Hashtable<Integer,JLabel>(); labels = new Hashtable<Integer,JLabel>
java programming
java programming  Hi friends, i need a simple login form source code. in that program i have two labels,two text fields and two buttons namely ok and cancel buttons. how to write for that one using netbeans without database
java Programming
java Programming  Based on the following algorithm, write a Java Program Start defining the MyClass class. Declare the class?s myField data field. Initialize the data field. Start defining the SetField() method. Set
Java Programming
Java Programming  Assume that bank maintains two kinds of accounts...://www.roseindia.net/tutorial/java/core/bankAccountApplication.html   thnk...://www.roseindia.net/answers/viewqa/Java-Beginners/27008-q-in-java.html
Advertisements
 

 

 

DMCA.com