GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 371 of 878    Print  
Which of the option correctly describes the comments in java1) // -- single line comment2) /* --*/ multiple line comment 3) /** --*/ documentation
A) 1, 2
B) 2, 3
C) 3, 1
D) 1, 2, 3



  
Total Answers and Comments: 2 Last Update: May 25, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 20, 2005 22:07:39   #1  
sandeepcheema007 Member Since: December 2005   Contribution: 8    

RE: Which of the option correctly describes the commen...
All these are legal comments in java.The third one, /**This is a comment */ might look new to c++ programmers,but it is very beneficial for the purpose of documentation,i.e. preparing a separate document file alongwith.
 
Is this answer useful? Yes | No
May 25, 2006 04:43:24   #2  
sujatawankhede Member Since: May 2006   Contribution: 11    

RE: Which of the option correctly describes the commen...
all three comment are right....
 
Is this answer useful? Yes | No

 Related Questions

comments 
View Question | Asked by : rajendra kunar netha

Which of the option correctly describes the comments in java1) // -- single line comment2) /* --*/ multiple line comment 3) /** --*/ documentation
A) 1, 2B) 2, 3C) 3, 1D) 1, 2, 3 

Which of the following statements correctly describes the relation between an object and the instance variable it stores? (Select multiple)
A) Each new object has its own distinctive set of instance variablesB) Each object has a copy of the instance variables of its classC) the instance variable of each object are seperate from the variables 

A) It's a concrete classB) It's a superclassC) It's a type of abstract class 

A) TrueB) False 
Latest Answer : I got 29/30 and the only wrong answer was this which i think is incorrect evaluationbecause java inline coments can also begin with //so please reframe the question and remove the word "must begin" and replace the term by "can begin"RegardsH.Sridhar ...

A) One B) Two C) ThreeD) Four Explanation: There are 3 types of comments namely Single-line, Multi-line and Documentation comment  
Latest Answer : what is the syntax of doc comment ? i was thinking only 2 types of comments ...

I face problem while doing Servlet program. I successfully get .class file of Servlet's .java file, When I copy(deploy) the .class file in "servlets-example->WEB-INF->classes " folder& map in web.XML file , & run it does not run . When I check,in Tomcat's manager.HTML file , The running option for servlets-examples is turned false, It happens many times.What shall I do to recover?? Please answer me????
Read Answers (1) | Asked by : Abdul Sayeed

Choice 1: Collect profiling and debugging statistics. Choice 2: Modify the number of bits a double variable uses. Choice 3 : Set the initial memory allocation pool size. Choice 4 :Modify the garbage 
View Question | Asked by : sesi

Class B extends A { int flag = 0; public int getFlag() { return flag; } protected void setFlag(int newSetting) { flag = newSetting; } } Which statement describes the relationship between classes A and B in the code above?
class B extends A { int flag = 0; public int getFlag() { return flag; } protected void setFlag(int newSetting) { flag = newSetting; } } Which statement describes the relationship between 
View Question | Asked by : sesi

Which of the following statements correctly describes an interface? It's a concrete classIt's a superclassIt's a type of abstract class
View Question | Asked by : Namrata
Tags : Abstract


 Sponsored Links

 
Related Articles

What is the use of COUNT with DISTINCT option

COUNT is a group function returns result by summarizing multiple rows. All group by value function will have the usage of DISTINCT or ALL option and so is the COUNT which uses the DISTINCT option. DISTINCT option is used to enforce uniqueness and  if combined with COUNT is used to
 

Finding The Right Student Loan Option

Finding The Right Student Loan Option Finding the right student loan can be a struggle to many students It is one major decision that can make or break a student’ s future financial stability If you make the mistake of getting a student loan that you cannot properly manage as you go along
 

Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape