0% found this document useful (0 votes)
5 views2 pages

Advanced Java Important Questions

The document outlines various concepts in Java, including differences between methods such as hasNext() and next(), and the purpose of the Map interface. It also covers exceptions in collections, methods of the Collection Framework, and string handling techniques. Additionally, it provides examples and explanations for various Java classes and methods, including String, StringBuffer, and LinkedList.
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)
5 views2 pages

Advanced Java Important Questions

The document outlines various concepts in Java, including differences between methods such as hasNext() and next(), and the purpose of the Map interface. It also covers exceptions in collections, methods of the Collection Framework, and string handling techniques. Additionally, it provides examples and explanations for various Java classes and methods, including String, StringBuffer, and LinkedList.
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

Write the differences between hasNext() and next() method.

What is map? List any two Map interface.


Write any two uses of Generics.
List any four exceptions thrown in the context of collections
What is the usage of containsAll() and retainAll() methods?
List any four interfaces provided by Collection Framework.
Write the any two differences between StringBuffer and StringBuilder class
Differentiate poll() and remove() methods of Queue interface.
Write the purpose of + operator in string handling with an example
Provide the syntax and an example for the charAt() method to extract characters from a
string.
Write the purpose and syntax of the regionMatches() method in string handling
Demonstrate the usage of the startsWith() and endsWith() methods in string handling.
What's the difference between equals() and == ?

List any five methods of Collection interface with its purpose.


List any five methods of Queue interface with its purpose.
Explain any four methods defined by NavigableSet interface
List any five methods of DQueue interface with its purpose.
Write a Java program that demonstrates the usage of the LinkedList class from the Java
Collections Framework
With an example explain the usage of ArrayList
With syntax and example explain the following String class methods
getChars() replace()
With syntax and example explain the following StringBuffer class methods
insert(). deleteCharAt()
With syntax and example explain the following StringBuffer class methods
substring(). lastIndexOf()
Explain how to concatenate string with other data types?
Explain character extraction methods of String class with an example
Explain any four string comparison methods with an example
With an example explain the six methods of StringBuffer class
Describe two common approaches for modifying Strings in Java with an example

You might also like