logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Should a main() method be compulsorily declared in all java classes?


  • Correct Answer
  • No not required main() method should be defined only if the source class is a java application 


  • Technology problems


    Search Results


    • 1. Which of the following is not the member of class?

    • Options
    • A. Virtual function
    • B. Static function
    • C. Friend function
    • D. Const function
    • Discuss
    • 2. What do you mean by friend function in C++ ?
    • Discuss
    • 3. What is the default return type of a function ?

    • Options
    • A. int
    • B. void
    • C. float
    • D. char
    • Discuss
    • 4. Which is more effective while calling the functions?

    • Options
    • A. call by value
    • B. call by reference
    • C. call by pointer
    • D. none
    • Discuss
    • 5. What is the correct JavaScript syntax to write ?Hello World??

    • Options
    • A. System.out.println(
    • B. println (
    • C. document.write(
    • D. response.write(
    • Discuss
    • 6. What is the importance of finally block in exception handling ?
    • Discuss
    • 7. How can you make sure the web application is fit for release ?
    • Discuss
    • 8. What is the difference between Tags and HTML Elements ?
    • Discuss
    • 9. Explain static and dynamic memory allocation with an example each.
    • Discuss
    • 10. Why static methods cannot access non static variables or methods?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment