0% found this document useful (0 votes)
33 views4 pages

Java Question 2

Uploaded by

shiva shantha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views4 pages

Java Question 2

Uploaded by

shiva shantha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

 What is Class

 What is Object
 What is Method
 Types Of Methods
 Examples of Methods
 Static Method & Non Static Methods examples
 Final Keyword
 Abstract Keyword
 Stack Area
 Heap Area
 Where Objects Gets created
 Where local var present
 Where global var present
 Which one we can access Directly Which cant’t
 How we can say that Static is single copy & Non static is multiple copy
 Local var
 Global var
 Accessibility of local vs global
 constructor Rules of Construction
 Main Purpose of Construction
 Types of Constructors
 Can We define constructor as static
 Can we define constructor as Final
 Execution process in details
 Can we create object of interface
 Can we define constructor is abstract clan
 Can we create constructor of interface
 Can we create reference of interface
 Polymorphism & types & examples
 Which method can be overloaded Which cant’t & why
 Can an define constructor interface
 Which method can be over ridden Which can’t
 Can an interface extends a class
 Can we declare interface as final
 Does interface extend object class by default
 Can we declare interface with abstract keyword
 Can we declare abstract method as static
 Can we declare abstract method as Final
 Can we declare abstract method as private
 Can abstract class implements interface
 What will happen if we didn’t complete all incomplete method of abstract class sub class
 By default all the class extends which class in java
 Can a class extend itself
 A class inherit final method
 A class inherit private method
 A class inherit constructor method
 Which of super class name and sub class giving same field name
 Can we achieve method over loading by changing return type
 What is Oops
 Is java a100% pure oops
 Method hiding
 Rules of overloading and overriding
 Can we prevent overriding a method without using final modifier
 How do we call super class overridden method in sub class
 Can we declare a class over as abstract and final at same time
 Define Inheritance
 Define Abstract class
 Define Encapsulation
 Define Interface
 Define Polymorphism
 Rules for Encapsulation
 Pray for Encapsulation
 Need for encapsulation
 Rules for abstract class
 Can we declare a main method class
 Can we create object of abstract class
 What is abundant object
 Class constant and object constant
 Features of java
 Difference between JVM, JIT, JDK
 Explain java memory management
 Is Java interpreted or compile time programming lang
 What is package
 Advantages of abstract class
 What are java beans
 List the object class methods (with accesses specifies a return type)
 Which are the final method of object class
 What is hash code
 Which is the super most class java
 Which is the default package that get imported by default
 List of arrays class present
 Difference between method and function
 Over loading and over riding with inbuit example
 What is SIB &IIB
 Difference between access specifies and access modifiers specifers- modifiers
 Methods overloading with example
 Construct overloading with example
 Real time example for Construtor overloading & method overloading
 Difference between method & constructor
 Can a class be public, private,protected,
 Define garbage collection
 What is collection
 How many interface are present in collection
 What is list, Set, Queue stack, map
 Difference between remove( ) and poll ( )
 Difference between iterator and list iterator
 Difference between set and list
 Difference between Arraylist,linkedd list,vector
 Default size of arraylist,linked list vector hashset,treeset
 How to sort the collection
 Difference between hashmap and hashet
 Difference between Set,list and map
 Which one do we prefer for sortring object array or array list
 Difference between Array list and vector
 Advantages of using collection
 What will happen if we present two key same in map
 What is exception
 What is error
 Difference between Exception and error
 Can we keep any statement Between try & catch block
 Can we write one try block without catch and finally block
 What is unreachable catch block error
 Explain runtime exception with example
 Explain compile exception with example
 Can we re-throwing an exception
 What is re-throwing an exception
 How to create user define exception
 What is the super class to exception & Error clam
 What is print stack trace( )
 Define try, catch, finally, throw, throws,
 Difference between throw & Throws
 Can we have empty catch block
 How can we handle multiple Exception
 Why do we handle exception when we declare it using throw keyword
 Explain exception propagation
 What if main methods occurs exception
 Dynamic method dispatch/ dynamic polymorphism
 Result set
 Sychronization
 Serialization – Deserailazation
 Do we create object for interface
 Program on star patterns
 Program to merge alternate letters of 2 strings
 Program to reverse string array
 Difference between throw & throws
 Detailed explaination on method overriding
 List the type of checked exceptions
 Implement hashatble
 Abstraction
 Can we do overloading between two classes
 Object casting
 Explain about finally block
 Thread class present in which package
 Different ways to create thread class and which one is preferable
 Why do we go for encapusulation
 Itrate a map
 Does set allows duplicate value
 Differetitate & Implement Iterator & list iteratot
 Find no of e’s characters from string
 Finding vowels from string
 Find how many times a character is repeating
 Find reverse of string
 Find palindrome of string
 Find unique char’s from string
 Rename vowels and digitals & spaces from string trim ( )
 Sort the string in increasing order find the longest word from string
 Sort the arrays 1: increasing 2: Decreasing
 Find 1; max 2: min from an array
 Delete duplicate elements from an array
 Find prime numbers from an array
 Prog to copy an array

You might also like