Simple Java questions and answers

Java

Real-world objects contain __state_ and _behavior__.
A software object’s state is stored in _fields__.
A software object’s behavior is exposed through _methods__.
Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data _encapsulation__.
A blueprint for a software object is called a _Class__.
Common behavior can be defined in a _superclass__ and inherited into a _subclass__ using the _extends__ keyword.
A collection of methods with no implementation is called an _interface__.
A namespace that organizes classes and interfaces by functionality is called a _package__.
The term API stands for _Application Programming Interface__?

Real-world objects contain __state_ and _behavior__.

A software object’s state is stored in _fields__.

A software object’s behavior is exposed through _methods__.

Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data _encapsulation__.

A blueprint for a software object is called a _Class__.

The term “instance variable” is another name for _Non-Static Fields__.

The term “class variable” is another name for _Static Fields__.

A local variable stores temporary state; it is declared inside a _method__.

A variable declared within the opening and closing parenthesis of a method signature is called a __parameter__.

What are the eight primitive data types supported by the Java programming language?

byte, long, char, int, float, double, boolean, short

Character strings are represented by the class _String__.

An _Array__ is a container object that holds a fixed number of values of a single type.

Common behavior can be defined in a _superclass__ and inherited into a _subclass__ using the _extends__ keyword.

A collection of methods with no implementation is called an _interface__.

A namespace that organizes classes and interfaces by functionality is called a _package__.

The term API stands for _Application Programming Interface__?

同类其他面试题 点击新一篇或旧一篇可浏览全部同类面试题

新一篇:
旧一篇:

共有2 条 关于 “Simple Java questions and answers”的评论

  • 1
    :

  • 2
    这套题太傻了:

    RT

你有答案? 你对以上面试题有意见? 你想发表你的见解? 写下来吧!你的分享将会让很多人受益!

相关面试题

·什么是内部类?static nested class和inner class的不同。
·j初始值为0,j=j++;循环100遍值为多少?
·java一天中的所有微秒除以一天中所有的毫秒等于5还是?
·java陷阱之随机数问题
·java陷阱之判断奇数

版权声明:本站大部分内容为原创! 另有少部分内容整理于网络,如需转载本站内容或关切版权事宜请联系站长。未经允许,严禁复制转载本站内容,否则将追究法律责任。 本站欢迎与同类网站建立友情链接,请联系QQ:176687814