Explain what access modifiers can be used for methods in Java?
We can use all access modifiers public, private, protected and default for methods.public : When a method is declared as…
What access modifiers can be used for class in Java?
We can use only two access modifiers for class public and default.public: A class with public modifier can be visible1)…
What is the difference between access specifiers and access modifiers in java?
In C++ we have access specifiers as public, private, protected and default and access modifiers as static, final. But there…
What are access modifiers in java?
The important feature of encapsulation is access control. By preventing access control we can misuse of class, methods and members.…
What are identifiers in java?
Identifiers are names in java program. Identifiers can be class name, method name or variable name. Rules for defining identifiers…
Can we define package statement after import statement in java?
We canโt define package statement after import statement in java. Package statement must be the first statement in source file.…
Can we have more than one package statement in source file ?
We canโt have more than one package statement in source file. In any java program there can be atmost only…
What are packages in java?
Package is a mechanism to group related classes ,interfaces and enums in to a single module. Package can be declared…
What all access modifiers are allowed for top class ?
For top level class only two access modifiers are allowed. public and default. If a class is declared aspublic it…
Can we have multiple classes in single file ?
Yes we can have multiple classes in single file but it people rarely do that and not recommended. We canhave…
What does null mean in java?
When a reference variable doesnโt point to any value it is assigned null.Example : Employee employee;In the above example employee…
Explain about instanceof operator in java?
Instanceof operator is used to test the object is of which type. Syntax : instanceof Instanceof returns true if reference…
Difference between โIS-Aโ and โHAS-Aโ relationship in java?
IS-A RELATIONSHIP HAS- A RELATIONSHIP Is a relationship also known as inheritance Has a relationship also known as composition or…
What is โHAS Aโโ relationship in java?
โHas a โ relationship is also known as โcomposition or Aggregationโ. As in inheritance we have โextendsโkeyword we donโt have…
What is โIS-A โ relationship in java?
โis aโ relationship is also known as inheritance. We can implement โis aโ relationship or inheritance in javausing extends keyword.…
Explain Java Coding Standards for Constants?
Constants in java are created using static and final keywords.1) Constants contains only uppercase letters.2) If constant name is combination…
Explain Java Coding Standards for variables ?
1) Variable names should start with small letters.2) Variable names should be nouns3) Short meaningful names are recommended.4) If there…
Explain Java Coding standards for Methods?
1) Method names should start with small letters.2) Method names are usually verbs3) If method contains multiple words, every inner…
Explain Java Coding standards for interfaces?
1) Interface should start with uppercase letters2) Interfaces names should be adjectivesExample : Runnable, Serializable, Marker, Cloneable
Explain Java Coding Standards for classes or Java coding conventions for classes?
Sun has created Java Coding standards or Java Coding Conventions . It is recommended highly to followjava coding standards.Classnames should…
CATEGORIES
- BFSI (2)
- BigData (1)
- Business Analyst (19)
- DataScience (3)
- Durga Ma (1)
- Education (9)
- Entertainment (2)
- Games (2)
- Ganesh Ji (3)
- Gauri Ma (1)
- Hanuman Ji (2)
- Hindi (6)
- JAVA INTERVIEW QUESTIONS (67)
- Jobs (9)
- Knowledge (38)
- Legends (1)
- Live Darshan (1)
- News (26)
- Personalities (6)
- Python (66)
- PYTHON INTERVIEW QUESTIONS (47)
- Quizzes (1)
- Quotes (2)
- Ram Ji (1)
- Religious (19)
- Shiv Ji (1)
- SQL (50)
- Technology (22)
- Travel (16)
- Uncategorized (3)
- Vishnu Ji (2)
LATEST POSTS
- Ganesh Ji Arti
- BELIEVE TO ACHIEVE
- LOVE AND LIFE
- Shree Vishnu Sahstranama เคถเฅเคฐเฅ เคตเคฟเคทเฅเคฃเฅ เคธเคนเคธเฅเคคเฅเคฐเคจเคพเคฎ
- Mahagauri Mata ki Aarti เคฎเคนเคพเคเฅเคฐเฅ เคฎเคพเคคเคพ เคเฅ เคเคฐเคคเฅ
- Shri Durga Sahstranama เคถเฅเคฐเฅ เคฆเฅเคฐเฅเคเคพ เคธเคนเคธเฅเคฐเคจเคพเคฎ
- Shree Ram Aarti เคถเฅเคฐเฅ เคฐเคพเคฎ เคเคฐเคคเฅ
- Shiv Ji Aarti เคถเคฟเคต เคเฅ เคเคฐเคคเฅ
- Vishnu Ji Aarti เคตเคฟเคทเฅเคฃเฅ เคญเคเคตเคพเคจ เคเคฐเคคเฅ
- Hanuman Chalisa เคถเฅเคฐเฅ เคนเคจเฅเคฎเคพเคจ เคเคพเคฒเฅเคธเคพ
TAGS
BFSI Bhangarh BigData BusinessAnalyst Business Analyst DataScience Derivatives Destiny Rising Durga Entertainment Games Ganesh Ji Gauri Ma GovernmentJobs Govinddevji Hanuman Ji Hindi History Indus Valley Civilization Jaipur JAVA Jennie Kim Jobs Knowledge Kuldhara village Legends LinuxUnix LiveDarshan News Personalities Python Quotes Religious Sharad Purnima Shiv Ji Shri Ram Spiritual SQL Super Moon TAYLOR SWIFT Temple Temples Travel Updates Vishnu Ji