
Unit 1 - Classes and Objects
Authored by M.RAMYA CSE
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A function in C language is similar to what in Java language?
Variable
Member
Method
Class
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
All methods and variables in Java language are kept inside a?
File
Package
Class
Interface
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the need to mention "static" before main method?
To call main method without creating an object of class
To call main method using object creation
To avoid method overriding
To avoid calling the main method
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the use of Access modifier "public" in Java language?
To hide the main method from misuse
To call the main method outside of Class or Package by JVM
To protect main method
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Name of a Class, Variable, Method or an Interface in Java language is called?
Argument
Value
Identifier
Object
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these class is superclass of every class in Java?
Main
Object
String
Singleton
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which represent the real world entity in Java?
Class
Object
Data members
Main method
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?