Question
You can create a string object as string str = "abc"; why cant a button object be created as button bt = "abc";? explain

Answers

The main reason you cannot create a button by Button bt= "abc"; is because "abc" is a literal string (something slightly different than a String object, by-the-way) and bt is a Button object. The only object in Java that can be assigned a literal String is java.lang.String. Important to note that you are NOT calling a java.lang.String constuctor when you type String s = "abc";   Your Comment




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

What is software configuration management?

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?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q By which year Chandrayaan II will be launched?
  • Q In the kingdom of Satavahanas of ancient India, what was a district called?
  • Q The base color of newly introduced 500 rupee currency note is
  • Q What is meant by retrace time?
  • Q He spends hours looking ___ the birds.
  • Q Name the only scheduled bank in the co-operative sector of Kerala?
  • Q In inductive circuit, Why Current increases, when frequency Decreases?
  • Q Why an ammeter should be of very low resistance?
  • Q On a scale of 1-10 how random would you say these are?
  • Q How much notice would you need to give to your present employer if you were offered a position?
  • Q What is the function of ICT technical support?