Question
Which of the following code is correct ?


a. Date date = DateFormat.newInstance(DateFormat.LONG, Locale.US).parse(str);


b. Date date = DateFormat.newInstance(DateFormat.LONG, Locale.US).format(str);


c. Date date = DateFormat.getDateInstance(DateFormat.LONG, Locale.US).parse(str);




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Explain step generator in QTP
  • Q Man behaving more like a woman than as a man
  • Q Domingo Paes, the famous Portuguese traveller, described this city as the best provided city in the world. Name the city.?
  • Q What are the advantages of sequence control of ac voltage regulators?
  • Q Is it necessary for a function to contain a return statement if it does not return a value?
  • Q What is the specialty of NAND and NOR gates?
  • Q In Oregon it is illegal to wear what on clothing in public
  • Q Why we do load and performance testing?
  • Q What is the generic name for Aricept?
  • Q The _____ is a document that must be served on or delivered to the defendant to allow the court to exercise its power over the defendant. (A)Summons (B)Complaint (C)Tort (D)Redress (E)Punity (F)Ordinance
  • Q Are nematodes exclusively parasites?