What will be the output of following code ?
System.out.println((int)'a');
Questions
Search
List By Company
List By Topic
Legacy
Tests
Repository
DashBoard
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Best Of Java
Discussion
Search
Subscribe
Search Interview Questions
More than 3000 questions in repository.
There are more than 900 unanswered questions.
Click here
and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company
Label / Company / Text
Search
Submit Question
Interview Questions and Answers
Q1.
What will be the output of following code ?
System.out.println((int)'a');
Ans. The ascii value of a i.e 97
Help us improve. Please let us know the company, where you were asked this question
:
Like
Discuss
Correct / Improve
 character  ascii
Correction
Duplicate of Another Question
Company where this question was Asked
Suggestion
Related Questions
What is a stream and what are the types of Streams and classes of the Streams?
What will be the output of
System.out.println((Integer)'a');
What are ascii values for capital and lower case alphabets ?
Which class is used to read streams of characters from a file?
Write an SQL to find all records having all upper case alphanumeric characters in a field ?
Write an SQL to find all records having all numeric characters in a field ?
What is the character limit of url and doesn it apply to GET and POST Requests ?
Write a Program that prints words longer than 5 characters in a String
For example
We are what we repeatedly do; excellence, then, is not an act but a habit
should print
repeatedly
excellence
Write a Program to print index of first capital character in a string.
Help us and Others Improve. Please let us know the questions asked in any of your previous interview.
Any input from you will be highly appreciated and It will unlock the application for 10 more requests.
Company Name:
Questions Asked: