Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
general knowledge
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
beans
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


String handling and find the output of Java program?
Question Posted on 04 Feb 2021

Home >> Java >> Core Java >> String handling and find the output of Java program?




String handling and find the output of Java program?
Below is the syntax for handling string in java program by using addition of string with numeric values.
class Teststring
{
  public static void main (String args[])
  {
   System.out.println(40 + 30 + "crackyourinterview");
   System.out.println("crackyourinterview" + 40 + 30);
  }
}


And Output of above program is given below
70crackyourinterview
crackyourinterview4030
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
what is an object
what is OOAD
difference between c++ and java
what is a transient variable in java
difference between C and Java on pointers






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |