The default__ of objects protects private and trancient data, and supports the __ of the classes
a)evolution
b)encoding
Ans:a,b.
Which are keywords in Java?
a) NULL
b) sizeof
c) friend
d) extends
e) synchronized
Ans :d and e.
When must the main class and the file name coincide?
Ans :When class is declared public.
What are different modifiers?
Ans : public, private, protected, default, static, trancient, volatile, final, abstract.
What are access modifiers?
Ans : public, private, protected, default.
What is meant by "Passing by value" and " Passing by reference"?
Ans : objects – pass by referrence
Methods - pass by value
Is a class a subclass of itself?
Ans : A class is a subclass itself.
What modifiers may be used with top-level class?
Ans : public, abstract, final.
What is an example of polymorphism?
Inner class
Anonymous classes
Method overloading
Method overriding
Ans : c
Packages and interface
What are packages ? what is use of packages ?
Ans :The package statement defines a name space in which classes are stored.If you omit the package, the classes are put into the default package. Signature... package pkg; Use: * It specifies to which package the classes defined in a file belongs to. * Package is both naming and a visibility control mechanism.
SOFTWARE COMPANIES
RESUME PREPRATION
INTERVIEW TIPS
C QUESTIONS
chapter 1
chapter 2
chapter 3
chapter 4
chapter 5
chapter 6
chapter 7
chapter 8
chapter 9
chapter 10
View All
DATA STRUCTURE
TECHNICAL QUESTIONS
JAVA
First chapter
Second chapter
Third chapter
Fourth chapter
Fifth chapter
Sixth chapter
Seventh chapter
Eight chapter
ninth chapter
Tenth chapter
eleventh chapter
Twevelth chapter
View All
FILE EXTENSION