Top 10 java interview questions.
Upcoming SlideShare
Loading in...5
×
 

Top 10 java interview questions.

on

  • 400 views

These are the top 10 java interview questions for interns.

These are the top 10 java interview questions for interns.

Statistics

Views

Total Views
400
Views on SlideShare
395
Embed Views
5

Actions

Likes
0
Downloads
14
Comments
1

1 Embed 5

http://www.slideee.com 5

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • very useful to me.....
    thanks :)
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Top 10 java interview questions. Top 10 java interview questions. Presentation Transcript

  • T.Kajavathanan lk.linkedin.com/in/tkajavathanan/
  • • Answer many forms Overloading Overriding
  • • Answer public methods Getters Setters public int getAge() { return age; } public void setAge( int newAge) { age = newAge } assign values
  • • Answer
  • • Answer Concatenation of String Concatenation of StringBuffer String greet=“Hello “; Greet +=“friend”; StringBuffer greet=new StringBuffer(“Hello”); greet.append(“ friend”);
  • • Answer
  • • Answer We can use Final key word for this purpose. Final keyword means we can’t implement this class anymore. We can use Final key word for class, methods and variables. Final class myClass{ … }
  • • Answer ArrayList List=new ArrayList(); List.add(“Sunday”); List.add(“Monday”); List.add(“Tuesday”); List.add(“Wednesday”); List.add(“Thursday”); Iterator a=List.iterator(); While(a.hasNext()){ Object myObj=a.next(); System.out.println(myObj+ “ ”); }
  • static Public static void main() • Answer
  • • Answer
  • • Answer