Tutorials for programmers

This Blog teaches about the Basic of the programming in C, C++, Java and languages for the Webpages like HTML, CSS.

Tuesday, 14 March 2017

Let's see who can answer this One.(JAVA CODE).


Code: 
//Consider that a class is already created. 

String s = new String("abc");
String s1="abc";
String s2= new String("abc");

How Many Objects are created in the above program(Total number of Objects)? Comment your Answer Below.

Posted by Saurabh at 19:37
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (1)
    • ►  February (1)
  • ►  2018 (2)
    • ►  September (1)
    • ►  May (1)
  • ▼  2017 (20)
    • ►  October (1)
    • ►  September (1)
    • ►  July (1)
    • ►  June (2)
    • ►  May (3)
    • ►  April (4)
    • ▼  March (7)
      • Out of While and do-while , which is more effici...
      • If Strings are immutable then what the other way...
      • Creating a Simple Server- Client Connection in J...
      • How Strings are Immutable? Let's Understand thi...
      • Now Time to Answer my First  Challenge Question....
      • Solve(JAVA CODE) Code: //Consider that a class i...
      • Let's see who can answer this One.(JAVA CODE). ...
    • ►  February (1)
  • ►  2016 (27)
    • ►  September (11)
    • ►  August (16)

About Me

Saurabh
View my complete profile
Picture Window theme. Theme images by enot-poloskun. Powered by Blogger.