Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: String Exercises 1

(10 points) Given the following local variable declarations:

Tutorial Details:

(10 points) Given the following local variable declarations:

String a = "abc";
String s = a;
String t;
What is the value of the following expressions (or ERROR)?

__________ s.length()
__________ t.length()
__________ 1 + a
__________ a.toUpperCase()
__________ "Tomorrow".indexOf("r")


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/data/strings/q-fi-string-exercises/q-fi-d1-stringquiz.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
String Exercises 1

View Tutorial:
String Exercises 1

Related Tutorials:

Speed up listener notification - JavaWorld February 2000
Speed up listener notification - JavaWorld February 2000
 
StringBuffer versus String - JavaWorld March 2000
StringBuffer versus String - JavaWorld March 2000
 
Debug with jdb - JavaWorld June 2000
Debug with jdb - JavaWorld June 2000
 
Optimize a query on a Map - JavaWorld November 2000
Optimize a query on a Map - JavaWorld November 2000
 
Design for performance, Part 1: Interfaces matter - JavaWorld January 2001
Design for performance, Part 1: Interfaces matter - JavaWorld January 2001
 
Design for performance, Part 2: Reduce object creation - JavaWorld February 2001
Design for performance, Part 2: Reduce object creation - JavaWorld February 2001
 
XML APIs for databases - JavaWorld January 2000
XML APIs for databases - JavaWorld January 2000
 
Device programming with MIDP, Part 3 - JavaWorld July 2001
Device programming with MIDP, Part 3 - JavaWorld July 2001
 
Matchmaking with regular expressions - JavaWorld July 2001
Matchmaking with regular expressions - JavaWorld July 2001
 
Use XML data binding to do your laundry
Use XML data binding to do your laundry
 
XML documents on the run, Part 2
XML documents on the run, Part 2
 
Study guide Achieve strong performance with threads Part 1
Study guide Achieve strong performance with threads Part 1
 
Is WSDL the indispensable API?
Is WSDL the indispensable API?
 
Test networked code the easy way
Test networked code the easy way
 
Java's character and assorted string classes support text-processing
Java's character and assorted string classes support text-processing
 
Java Tip 143: Utilize the Database Schema Browser
Java Tip 143: Utilize the Database Schema Browser
 
Understanding the Interplay Between Utility Classes and Static Initialization
Java is an OO language, which means much of the functionality of a Java application is encapsulated into cohesive classes that can be instantiated and acted upon.
 
Classifier4J
Classifier4J is a Java library designed to do text classification. It comes with an implementation of a Bayesian classifier, and now has some other features, including a text summary facility.
 
JFormula 2.9 - Math expression API
JFormula 2.9 - Math expression API JFormula is a Java library for evaluating various expressions (boolean, math, if/then/else...). A lot of companies chose JFormula like EADS Space Transportation.
 
JSP Tutorial
This Tutorial is for beginners in the Java Server Pages Technology
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.