• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

doubt bank part 3

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. can two public classes exist in same file if so how?

2. Main method calling a nonstatic method if so how?

3. Methods with same name as contructors if so how?

4. local inner class accessing non-final args?

5. "Math class being an option for immutable classes" what it means?

6. difference between "instanceOf & instanceof"?

7. "forward reference leading to compile error" what it means and explain what is forward reference with coding..

8. can declarations be labelled if so how?

9. can constructors throw exceptions?

10.are Instance Initializers invoked on object contruction? explain with coding.

11. what is NaN and non NaN?

12. consider,
we have only argument constructors for superclass and on subclas we have coding as
sub_class(5){
//insert coding here
}

here if we insert this(5) can compile error be avoided? what and how this(5) acts?

12. we have
if(){}
elseif{}
no else.. does it lead to error?

13. does synchronized(str) lead to compile error if str is a string?

Thanks in advance

regards
Harinath Chakrapani.
 
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
harinath chakrapan,

Before the eager members of the Javaranch dive into answering your long list of questions, may we ask... What do you think the answers are? Generally, it is easier to learn something, if you attempt to answer the questions first. What do you think the answers are? and why?

Henry
 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic