73. What do you understand by private, protected and public? These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference …
April 2016
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-12
by Sby S67. Which non-Unicode letter characters may be used as the first character of an identifier? The non-Unicode letter characters $ and _ may appear as the first character of an …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-11
by Sby S61. Can a Byte object be cast to a double value? No, an object cannot be cast to a primitive value. 62. What is the difference between a static and …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-10
by Sby S55. What is Externalizable? Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-9
by Sby S49. Why is an Interface be able to extend more than one Interface but a Class can’t extend more than one Class? Basically Java doesn’t allow multiple inheritance, so a …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-8
by Sby S43. Class C implements Interface I containing method m1 and m2 declarations. Class C has provided implementation for method m2. Can i create an object of Class C? No not …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-7
by Sby S37. Can we declare a static variable inside a method? Static varaibles are class level variables and they can’t be declared inside a method. If declared, the class will not …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-6
by Sby S31. How is final different from finally and finalize()? final is a modifier which can be applied to a class or a method or a variable. final class can’t be …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-5
by Sby S25. Can a class declared as private be accessed outside it’s package? Not possible. 26. Can a class be declared as protected? A class can’t be declared as protected. only …
- Interview Questions and AnswersJavaTechnical Interview Questions and Answers
Core Java Interview Questions and Answers For Freshers and Experience Part-4
by Sby S19. Can a main() method be overloaded? Yes. You can have any number of main() methods with different method signature and implementation in the class.