Logo 
Search:

Java Articles

Submit Article
Home » Articles » Java » Homework HelpRSS Feeds

Program to declare, initialize and print a String object

Posted By: Ted Collins     Category: Java     Views: 3639

A Java Program to declare, initialize and print a String object.

Code for Program to declare, initialize and print a String object in Java

publicclass JAVA_042
 {

    publicstaticvoid main(String[] args)
    {
       String string="This is a String Object!"; 

       System.out.println(string);
    }
 }
  
Share: 


Didn't find what you were looking for? Find more on Program to declare, initialize and print a String object Or get search suggestion and latest updates.

Ted Collins
Ted Collins author of Program to declare, initialize and print a String object is from Houston, United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!