The range of the char type is 0 to 2^16 - 1.
All IT and Non IT Interview Questions, MCQs, Online Quiz Questions, Engineering VIVA Questions
Home » All posts
Monday, 13 February 2012
Can an anonymous class be declared as implementing an interface and extending a class? | Core Java
An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.
What are order of precedence and associativity, and how are they used? | Core Java
Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left
What is a native method? | Core Java
A native method is a method that is implemented in a language other than Java.
What restrictions are placed on the location of a package statement within a source code file? | Core Java
A package statement must appear as the first line in a source code file (excluding blank lines and comments).
How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters? | Core Java
Unicode requires 16 bits and ASCII require 7 bits. Although the ASCII character set uses only 7 bits, it is usually represented as 8 bits. UTF-8 represents characters using 8, 16, and 18 bit patterns. UTF-16 uses 16-bit and larger bit patterns.
What modifiers may be used with an inner class that is a member of an outer class? | Core Java
A (non-local) inner class may be declared as public, protected, private, static, final, or abstract.
Subscribe to:
Posts (Atom)