Select a forum to post in:

Java [old]

Moderator: Jessica

Java [old]

Post Number: #1  Postby Jessica » December 20th, 2012, 10:20 pm

References:
Introduction to Java Programming


Object Oriented Programming

Since Java is an object oriented programming language it has following features:

  • Reusability of Code
  • Emphasis on data rather than procedure
  • Data is hidden and cannot be accessed by external functions
  • Objects can communicate with each other through functions
  • New data and functions can be easily added

Java has powerful features. The following are some of them:
    Simple
    Reusable
    Portable (Platform Independent)
    Distributed
    Robust
    Secure
    High Performance
    Dynamic
    Threaded
    Interpreted
  • 0

User avatar
Jessica
Board Owner
Topic Author

Founder
Sapphire
Sapphire
 
7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership
 
Posts: 3,454
Topics: 1,244
Articles: 30
Joined: December 22nd, 2010, 8:04 pm
Local time: June 18th, 2018, 6:35 pm
Last Visit: Yesterday, 11:52 pm
Location: Pennsylvania
Gender: Female
Cash on hand: 4,538.87
Bank: 132,045.08
Reputation: 148
Medals: 19
#1: July 2012 1st Place (1) R-Contest #1 First Place (1) Best staff member 2013 (1) Easter Egg Hunt 2013 (1) Graphic Drawing Participant (1) 1 Year (1) 2 Years (1) 3 Years (1) 4 Years (1) 5 Years (1)
6 Years (1) 7 Years (1) Founder (1) Highest Rep (1) Referrer (1) Top poster (1) Facebook group (1) Pin-Board (1) Article Author (1)
Referrals: 27
Blog: View Blog (458)
Subject(s): Chinese, Math
Global Moderator
Admin
Moderator

Re: Java

Post Number: #2  Postby tomtiger11 » December 21st, 2012, 10:37 pm

I like Java.

(Does this post count as my anniversary post?)
  • 0

You know that person that has tons of friends, and more money than sense? Yea, I'm not that person... XD
tomtiger11
Computer Geek

Global Moderator
Onyx
Onyx
 
6 years of membership6 years of membership6 years of membership6 years of membership6 years of membership6 years of membership
 
Posts: 192
Topics: 28
Joined: October 21st, 2011, 12:27 pm
Local time: June 18th, 2018, 11:35 pm
Last Visit: July 26th, 2017, 6:16 pm
Gender: Male
Cash on hand: 552.28
Bank: 1,295.61
Reputation: 3
Medals: 5
1 Year (1) 2 Years (1) Feedback Survey (1) Facebook group (1) Pin-Board (1)
Blog: View Blog (3)
Teacher

Re: Java

Post Number: #3  Postby Jessica » December 22nd, 2012, 12:16 am

tomtiger11 » Dec 21 2012, 8:37 pm wrote:
I like Java.

(Does this post count as my anniversary post?)


It's tomorrow :P
  • 0

User avatar
Jessica
Board Owner
Topic Author

Founder
Sapphire
Sapphire
 
7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership
 
Posts: 3,454
Topics: 1,244
Articles: 30
Joined: December 22nd, 2010, 8:04 pm
Local time: June 18th, 2018, 6:35 pm
Last Visit: Yesterday, 11:52 pm
Location: Pennsylvania
Gender: Female
Cash on hand: 4,538.87
Bank: 132,045.08
Reputation: 148
Medals: 19
#1: July 2012 1st Place (1) R-Contest #1 First Place (1) Best staff member 2013 (1) Easter Egg Hunt 2013 (1) Graphic Drawing Participant (1) 1 Year (1) 2 Years (1) 3 Years (1) 4 Years (1) 5 Years (1)
6 Years (1) 7 Years (1) Founder (1) Highest Rep (1) Referrer (1) Top poster (1) Facebook group (1) Pin-Board (1) Article Author (1)
Referrals: 27
Blog: View Blog (458)
Subject(s): Chinese, Math
Global Moderator
Admin
Moderator

Re: Java

Post Number: #4  Postby tomtiger11 » December 22nd, 2012, 8:49 am

Jessica » Dec 21 2012, 10:16 pm wrote:
tomtiger11 » Dec 21 2012, 8:37 pm wrote:
I like Java.

(Does this post count as my anniversary post?)


It's tomorrow :P

Well, since the forum official time is UTC, it was correct :P
  • 0

You know that person that has tons of friends, and more money than sense? Yea, I'm not that person... XD
tomtiger11
Computer Geek

Global Moderator
Onyx
Onyx
 
6 years of membership6 years of membership6 years of membership6 years of membership6 years of membership6 years of membership
 
Posts: 192
Topics: 28
Joined: October 21st, 2011, 12:27 pm
Local time: June 18th, 2018, 11:35 pm
Last Visit: July 26th, 2017, 6:16 pm
Gender: Male
Cash on hand: 552.28
Bank: 1,295.61
Reputation: 3
Medals: 5
1 Year (1) 2 Years (1) Feedback Survey (1) Facebook group (1) Pin-Board (1)
Blog: View Blog (3)
Teacher

Re: Java

Post Number: #5  Postby Jessica » January 15th, 2013, 1:09 am

HelloPrinter.java
Code: Select all
public class Hello Printer {
    public static 
void main(String[] args) {
       
System.out.println("Hello, World!"); } 


Program Run
Hello, World!



The line public class Hello Printer starts a new class.

The reserved word public denotes that the class is usable by the "public".
  • 0

User avatar
Jessica
Board Owner
Topic Author

Founder
Sapphire
Sapphire
 
7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership
 
Posts: 3,454
Topics: 1,244
Articles: 30
Joined: December 22nd, 2010, 8:04 pm
Local time: June 18th, 2018, 6:35 pm
Last Visit: Yesterday, 11:52 pm
Location: Pennsylvania
Gender: Female
Cash on hand: 4,538.87
Bank: 132,045.08
Reputation: 148
Medals: 19
#1: July 2012 1st Place (1) R-Contest #1 First Place (1) Best staff member 2013 (1) Easter Egg Hunt 2013 (1) Graphic Drawing Participant (1) 1 Year (1) 2 Years (1) 3 Years (1) 4 Years (1) 5 Years (1)
6 Years (1) 7 Years (1) Founder (1) Highest Rep (1) Referrer (1) Top poster (1) Facebook group (1) Pin-Board (1) Article Author (1)
Referrals: 27
Blog: View Blog (458)
Subject(s): Chinese, Math
Global Moderator
Admin
Moderator

Re: Java

Post Number: #6  Postby Jessica » January 17th, 2013, 8:47 pm

Declaring Classes

Code: Select all
class MyClass {
    // field, constructor, and
    // method declarations
}


This is a class declaration. The class body (the area between the braces) contains all the code that provides for the life cycle of the objects created from the class: constructors for initializing new objects, declarations for the fields that provide the state of the class and its objects, and methods to implement the behavior of the class and its objects.

The preceding class declaration is a minimal one. It contains only those components of a class declaration that are required. You can provide more information about the class, such as the name of its superclass, whether it implements any interfaces, and so on, at the start of the class declaration. For example,
Code: Select all
class MyClass extends MySuperClass implements YourInterface {
    // field, constructor, and
    // method declarations
}

means that MyClass is a subclass of MySuperClass and that it implements the YourInterface interface.
  • 0

User avatar
Jessica
Board Owner
Topic Author

Founder
Sapphire
Sapphire
 
7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership7 years of membership
 
Posts: 3,454
Topics: 1,244
Articles: 30
Joined: December 22nd, 2010, 8:04 pm
Local time: June 18th, 2018, 6:35 pm
Last Visit: Yesterday, 11:52 pm
Location: Pennsylvania
Gender: Female
Cash on hand: 4,538.87
Bank: 132,045.08
Reputation: 148
Medals: 19
#1: July 2012 1st Place (1) R-Contest #1 First Place (1) Best staff member 2013 (1) Easter Egg Hunt 2013 (1) Graphic Drawing Participant (1) 1 Year (1) 2 Years (1) 3 Years (1) 4 Years (1) 5 Years (1)
6 Years (1) 7 Years (1) Founder (1) Highest Rep (1) Referrer (1) Top poster (1) Facebook group (1) Pin-Board (1) Article Author (1)
Referrals: 27
Blog: View Blog (458)
Subject(s): Chinese, Math
Global Moderator
Admin
Moderator


Return to Trasℎ Can

Login  •  Register
cron
Reputation System ©'